patrickjdarrow commited on
Commit
70d8d45
·
1 Parent(s): b8f5ef0

Fixed model load scheme

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ from autoencoder import Autoencoder
8
  device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
9
 
10
  model = Autoencoder()
11
- model.load_state_dict('model.pt', map_location=device)
12
 
13
  resize = Resize((224))
14
  to_tensor = ToTensor()
 
8
  device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
9
 
10
  model = Autoencoder()
11
+ model.load_state_dict(torch.load('model.pt', map_location=device))
12
 
13
  resize = Resize((224))
14
  to_tensor = ToTensor()