BhumikaMak commited on
Commit
292921d
·
verified ·
1 Parent(s): 3f486c1

return a list of images

Browse files
Files changed (1) hide show
  1. yolov5.py +1 -1
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