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