Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -17,9 +17,7 @@ else: device = 'cpu'
|
|
17 |
print('DEVICE:', device)
|
18 |
if device == 'cuda': print('CUDA DEVICE:', torch.cuda.get_device_name())
|
19 |
|
20 |
-
|
21 |
-
|
22 |
-
model = VGG_19().to(device)
|
23 |
for param in model.parameters():
|
24 |
param.requires_grad = False
|
25 |
|
|
|
17 |
print('DEVICE:', device)
|
18 |
if device == 'cuda': print('CUDA DEVICE:', torch.cuda.get_device_name())
|
19 |
|
20 |
+
model = VGG_19().to(device).eval()
|
|
|
|
|
21 |
for param in model.parameters():
|
22 |
param.requires_grad = False
|
23 |
|