Spaces:
Sleeping
Sleeping
Commit
•
5a754f4
1
Parent(s):
d962a77
Update model.py
Browse filesupdated directory path of model file
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('airplane_uncompiled.pth', map_location=torch.device('cpu'))
|
8 |
model_weights = torchvision.models.EfficientNet_B2_Weights.DEFAULT
|
9 |
transforms = model_weights.transforms()
|
10 |
|