RuoyuChen10 / objectdetection-saliency-maps

Based on the mmdetection framework, compute various salience maps for object detection.
65 stars 6 forks source link

MMdetection 2.x 可视化问题 #8

Open liting1018 opened 5 months ago

liting1018 commented 5 months ago

您好,我在进行可视化操作时出现以下报错信息,请问是为什么呢? 'NoneType' object is not subscriptable File "/data/LiTing/MMdet/interpretation/gradcam.py", line 207, in call gradient = self.gradient[0] # [C,H,W] File "/data/LiTing/MMdet/grade_cam_yolov3.py", line 221, in main mask, box, class_id, score = grad_cam(data, args.bbox_index) File "/data/LiTing/MMdet/grade_cam_yolov3.py", line 269, in main(args) TypeError: 'NoneType' object is not subscriptable

RuoyuChen10 commented 5 months ago

您好,我在进行可视化操作时出现以下报错信息,请问是为什么呢? 'NoneType' object is not subscriptable File "/data/LiTing/MMdet/interpretation/gradcam.py", line 207, in call gradient = self.gradient[0] # [C,H,W] File "/data/LiTing/MMdet/grade_cam_yolov3.py", line 221, in main mask, box, class_id, score = grad_cam(data, args.bbox_index) File "/data/LiTing/MMdet/grade_cam_yolov3.py", line 269, in main(args) TypeError: 'NoneType' object is not subscriptable

请见这里:https://github.com/RuoyuChen10/objectdetection-saliency-maps/issues/2