jamino30 commited on
Commit
20e2982
1 Parent(s): 3f52b3e

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,14 +9,14 @@ import torch.optim as optim
9
  import gradio as gr
10
 
11
  from utils import preprocess_img, preprocess_img_from_path, postprocess_img
12
- from vgg16 import VGG_16
13
 
14
  if torch.cuda.is_available(): device = 'cuda'
15
  elif torch.backends.mps.is_available(): device = 'mps'
16
  else: device = 'cpu'
17
  print('DEVICE:', device)
18
 
19
- model = VGG_16().to(device)
20
  for param in model.parameters():
21
  param.requires_grad = False
22
 
 
9
  import gradio as gr
10
 
11
  from utils import preprocess_img, preprocess_img_from_path, postprocess_img
12
+ from vgg19 import VGG_19
13
 
14
  if torch.cuda.is_available(): device = 'cuda'
15
  elif torch.backends.mps.is_available(): device = 'mps'
16
  else: device = 'cpu'
17
  print('DEVICE:', device)
18
 
19
+ model = VGG_19().to(device)
20
  for param in model.parameters():
21
  param.requires_grad = False
22