RashiAgarwal commited on
Commit
4a3baab
·
1 Parent(s): 3cf5303

Update display.py

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