Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ model_2 = models.torchvision.retinanet.model(
|
|
19 |
from huggingface_hub import hf_hub_download
|
20 |
hf_hub_download(repo_id="Alesteba/deep_model_02", filename="retinanet_racoon.pth")
|
21 |
|
22 |
-
state_dict = torch.load('retinanet_racoon.pth')
|
23 |
|
24 |
model_2.load_state_dict(state_dict)
|
25 |
|
|
|
19 |
from huggingface_hub import hf_hub_download
|
20 |
hf_hub_download(repo_id="Alesteba/deep_model_02", filename="retinanet_racoon.pth")
|
21 |
|
22 |
+
state_dict = torch.load('retinanet_racoon.pth', map_location=torch.device('cpu'))
|
23 |
|
24 |
model_2.load_state_dict(state_dict)
|
25 |
|