jamino30 commited on
Commit
917ebd2
·
verified ·
1 Parent(s): 0c698d9

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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
- torch.backends.cudnn.benchmark = True
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