RashiAgarwal commited on
Commit
e80b224
·
1 Parent(s): 955b7b0

Update display.py

Browse files
Files changed (1) hide show
  1. display.py +1 -0
display.py CHANGED
@@ -7,6 +7,7 @@ from albumentations.pytorch import ToTensorV2
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,show_cam: bool = False, transparency: float = 0.5):
12
  model = YOLOv3(num_classes=20)
 
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
+ 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)