Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ from utils import get_loaders
|
|
17 |
import utils
|
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 |
import utils
|
18 |
|
19 |
new_state_dict = {}
|
20 |
+
state_dict = torch.load('results/Yolov3_Lavanya.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
|