Spaces:
Sleeping
Sleeping
Update app_enhance.py
Browse files- app_enhance.py +1 -1
app_enhance.py
CHANGED
|
@@ -33,7 +33,7 @@ if not os.path.exists('realesr-general-x4v3.pth'):
|
|
| 33 |
|
| 34 |
model = SRVGGNetCompact(num_in_ch=3, num_out_ch=3, num_feat=64, num_conv=32, upscale=4, act_type='prelu')
|
| 35 |
model_path = 'realesr-general-x4v3.pth'
|
| 36 |
-
half = True if torch.cuda.is_available() else "cpu"
|
| 37 |
upsampler = RealESRGANer(scale=4, model_path=model_path, model=model, tile=0, tile_pad=10, pre_pad=0, half=half)
|
| 38 |
|
| 39 |
|
|
|
|
| 33 |
|
| 34 |
model = SRVGGNetCompact(num_in_ch=3, num_out_ch=3, num_feat=64, num_conv=32, upscale=4, act_type='prelu')
|
| 35 |
model_path = 'realesr-general-x4v3.pth'
|
| 36 |
+
half = True if torch.cuda.is_available() else "cpu" #device = "cuda" if torch.cuda.is_available() else "cpu" #model.to(device)
|
| 37 |
upsampler = RealESRGANer(scale=4, model_path=model_path, model=model, tile=0, tile_pad=10, pre_pad=0, half=half)
|
| 38 |
|
| 39 |
|