Spaces:
Sleeping
Sleeping
debug: stack dimension issue
Browse files
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
|