Grad-CAM.pytorch
Grad-CAM.pytorch copied to clipboard
error when running retinaNet demo.py
feature shape:torch.Size([1, 256, 100, 136])
feature shape:torch.Size([1, 256, 50, 68])
feature shape:torch.Size([1, 256, 25, 34])
feature shape:torch.Size([1, 256, 13, 17])
feature shape:torch.Size([1, 256, 7, 9])
Traceback (most recent call last):
File "detection/demo_retinanet.py", line 185, in
gradient = self.gradient[feature_level][0].cpu().data.numpy() # [C,H,W] IndexError: list index out of range
@xjoshramos 您好,我这边测试没有这个问题,请问您是测试工程中的样例图像报错么,是否有修改代码?