RashiAgarwal commited on
Commit
2e620cf
1 Parent(s): 32d95bb

Update display.py

Browse files
Files changed (1) hide show
  1. display.py +2 -2
display.py CHANGED
@@ -9,8 +9,8 @@ from pytorch_grad_cam.utils.image import show_cam_on_image
9
  from utils import YoloCAM, cells_to_bboxes, non_max_suppression
10
  from model import YOLOv3
11
 
12
- def inference(image: np.ndarray, iou_thresh: float = 0.75, thresh: float = 0.75,show_cam: bool = False, transparency: float = 0.5):
13
- model = YOLOv3(num_classes=20)
14
  model.load_state_dict(torch.load("model.pth", map_location=torch.device('cpu')), strict=False)
15
  # iou_thresh = 0.75
16
  # thresh = 0.75
 
9
  from utils import YoloCAM, cells_to_bboxes, non_max_suppression
10
  from model import YOLOv3
11
 
12
+ def inference(image: np.ndarray, iou_thresh: float = 0.5, thresh: float = 0.5,show_cam: bool = False, transparency: float = 0.5):
13
+ model = YOLOV3_PL() #YOLOv3(num_classes=20)
14
  model.load_state_dict(torch.load("model.pth", map_location=torch.device('cpu')), strict=False)
15
  # iou_thresh = 0.75
16
  # thresh = 0.75