Spaces:
Running
Running
return a list of images
Browse files
yolov5.py
CHANGED
@@ -89,7 +89,7 @@ def xai_yolov5(image,target_lyr = -5, n_components = 8):
|
|
89 |
cam_image, renormalized_cam_image = generate_cam_image(model, target_layers, tensor, image, boxes)
|
90 |
|
91 |
rgb_img_float, batch_explanations, result = dff_nmf(image, target_lyr = -5, n_components = 8)
|
92 |
-
result = np.hstack(result)
|
93 |
im = visualize_batch_explanations(rgb_img_float, batch_explanations) ##########to be displayed
|
94 |
|
95 |
# Combine results
|
|
|
89 |
cam_image, renormalized_cam_image = generate_cam_image(model, target_layers, tensor, image, boxes)
|
90 |
|
91 |
rgb_img_float, batch_explanations, result = dff_nmf(image, target_lyr = -5, n_components = 8)
|
92 |
+
#result = np.hstack(result)
|
93 |
im = visualize_batch_explanations(rgb_img_float, batch_explanations) ##########to be displayed
|
94 |
|
95 |
# Combine results
|