nkanungo commited on
Commit
e12b84c
·
1 Parent(s): 1edc402

Update src/detect.py

Browse files
Files changed (1) hide show
  1. 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().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)
 
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)