anjikum commited on
Commit
157c5e0
·
verified ·
1 Parent(s): 2583941

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -34,6 +34,7 @@ model.fc = nn.Linear(model.fc.in_features, 1000)
34
  model.to(device) # Move model to CPU (even if you have a GPU)
35
 
36
  checkpoint = torch.load('model.pth', map_location='cpu')
 
37
 
38
  # Load the model weights
39
  model.load_state_dict(checkpoint['model_state_dict'], strict=False, map_location=device)
 
34
  model.to(device) # Move model to CPU (even if you have a GPU)
35
 
36
  checkpoint = torch.load('model.pth', map_location='cpu')
37
+ print(checkpoint.keys())
38
 
39
  # Load the model weights
40
  model.load_state_dict(checkpoint['model_state_dict'], strict=False, map_location=device)