Spaces:
Sleeping
Sleeping
Update src/detect.py
Browse files- src/detect.py +1 -1
src/detect.py
CHANGED
@@ -12,7 +12,7 @@ from src.utils import cells_to_bboxes, non_max_suppression, draw_predictions, Yo
|
|
12 |
|
13 |
|
14 |
weights_path = "/home/user/app/model_ass_13_up.ckpt"
|
15 |
-
model = Assignment13
|
16 |
model = model.model
|
17 |
#ckpt = torch.load(weights_path, map_location="cpu")
|
18 |
#model.load_state_dict(ckpt)
|
|
|
12 |
|
13 |
|
14 |
weights_path = "/home/user/app/model_ass_13_up.ckpt"
|
15 |
+
model = Assignment13.load_from_checkpoint(weights_path,map_location=torch.device("cpu"))
|
16 |
model = model.model
|
17 |
#ckpt = torch.load(weights_path, map_location="cpu")
|
18 |
#model.load_state_dict(ckpt)
|