Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from icevision.models.checkpoint import *
|
|
6 |
import PIL
|
7 |
|
8 |
checkpoint_path = "efficientdetMapaches.pth"
|
9 |
-
checkpoint_and_model = model_from_checkpoint(checkpoint_path)
|
10 |
model = checkpoint_and_model["model"]
|
11 |
model_type = checkpoint_and_model["model_type"]
|
12 |
class_map = checkpoint_and_model["class_map"]
|
|
|
6 |
import PIL
|
7 |
|
8 |
checkpoint_path = "efficientdetMapaches.pth"
|
9 |
+
checkpoint_and_model = model_from_checkpoint(checkpoint_path, map_location=torch.device('cpu'))
|
10 |
model = checkpoint_and_model["model"]
|
11 |
model_type = checkpoint_and_model["model_type"]
|
12 |
class_map = checkpoint_and_model["class_map"]
|