Spaces:
Build error
Build error
Commit
β’
ac12ce6
1
Parent(s):
192dae6
Update model.py
Browse filesadd map_location=torch.device('cpu')
model.py
CHANGED
@@ -6,4 +6,4 @@ efficient_weight = EfficientNet_B2_Weights.DEFAULT
|
|
6 |
|
7 |
efficient_transformer = efficient_weight.transforms()
|
8 |
|
9 |
-
efficient_model = torch.load("efficient_model_101.pth"
|
|
|
6 |
|
7 |
efficient_transformer = efficient_weight.transforms()
|
8 |
|
9 |
+
efficient_model = torch.load("efficient_model_101.pth" , map_location=torch.device('cpu'))
|