Spaces:
Sleeping
Sleeping
Commit ·
644d850
1
Parent(s): 765f033
Update model.py
Browse filesupdated model path
model.py
CHANGED
|
@@ -4,7 +4,7 @@ from torch import nn
|
|
| 4 |
|
| 5 |
def load_model():
|
| 6 |
|
| 7 |
-
loaded_model = torch.load('
|
| 8 |
model_weights = torchvision.models.EfficientNet_B2_Weights.DEFAULT
|
| 9 |
transforms = model_weights.transforms()
|
| 10 |
|
|
|
|
| 4 |
|
| 5 |
def load_model():
|
| 6 |
|
| 7 |
+
loaded_model = torch.load('cifar10_effnet_sm_uncompiled.pth', map_location=torch.device('cpu'))
|
| 8 |
model_weights = torchvision.models.EfficientNet_B2_Weights.DEFAULT
|
| 9 |
transforms = model_weights.transforms()
|
| 10 |
|