BhumikaMak commited on
Commit
800a3d9
·
verified ·
1 Parent(s): 58e6893

debug: stack dimension issue

Browse files
Files changed (1) hide show
  1. yolov5.py +1 -0
yolov5.py CHANGED
@@ -81,6 +81,7 @@ def xai_yolov5(image):
81
  im = cv2.imread("test_w.png")
82
 
83
  # Combine results
 
84
  final_image = np.hstack((image, detections_img, renormalized_cam_image, im))
85
  caption = "Results using YOLOv5"
86
  return Image.fromarray(final_image), caption
 
81
  im = cv2.imread("test_w.png")
82
 
83
  # Combine results
84
+ print('shapes........', image.shape, detections_img.shape, renormalized_cam_image.shape, im.shape)
85
  final_image = np.hstack((image, detections_img, renormalized_cam_image, im))
86
  caption = "Results using YOLOv5"
87
  return Image.fromarray(final_image), caption