Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,8 +45,8 @@ from densenet_withglam import get_model_with_attention
|
|
| 45 |
|
| 46 |
# β
Instantiate the model
|
| 47 |
model = get_model_with_attention('densenet169', num_classes=3) # Will have GLAM
|
| 48 |
-
|
| 49 |
-
|
| 50 |
model.eval()
|
| 51 |
|
| 52 |
# β
Class Names
|
|
|
|
| 45 |
|
| 46 |
# β
Instantiate the model
|
| 47 |
model = get_model_with_attention('densenet169', num_classes=3) # Will have GLAM
|
| 48 |
+
model.load_state_dict(torch.load('densenet169_seed40_best.pt', map_location='cpu'))
|
| 49 |
+
# Load your trained weights
|
| 50 |
model.eval()
|
| 51 |
|
| 52 |
# β
Class Names
|