Update app.py
Browse files
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)
|