Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -54,9 +54,7 @@ model_pt = "mit5k_uegan_psnr_25.59.pth"
|
|
54 |
# parse config file
|
55 |
config = OmegaConf.load(CONFIG)
|
56 |
|
57 |
-
|
58 |
-
|
59 |
-
device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
|
60 |
|
61 |
config['train']['cuda_visible_device'] = device
|
62 |
model = NamedCurves(config.model).to(device)
|
|
|
54 |
# parse config file
|
55 |
config = OmegaConf.load(CONFIG)
|
56 |
|
57 |
+
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
|
58 |
|
59 |
config['train']['cuda_visible_device'] = device
|
60 |
model = NamedCurves(config.model).to(device)
|