Spaces:
Runtime error
Runtime error
Commit
·
02c5770
1
Parent(s):
193fedf
Upload app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ from torchvision import transforms
|
|
| 17 |
from utils import get_loaders
|
| 18 |
|
| 19 |
new_state_dict = {}
|
| 20 |
-
state_dict = torch.load('
|
| 21 |
for key, value in state_dict.items():
|
| 22 |
new_key = key.replace('model.', '')
|
| 23 |
new_state_dict[new_key] = value
|
|
|
|
| 17 |
from utils import get_loaders
|
| 18 |
|
| 19 |
new_state_dict = {}
|
| 20 |
+
state_dict = torch.load('Yolov3_Padmanabh.pth', map_location=torch.device('cpu'))
|
| 21 |
for key, value in state_dict.items():
|
| 22 |
new_key = key.replace('model.', '')
|
| 23 |
new_state_dict[new_key] = value
|