da2so/GradCAM_PyTorch

绘制feature map的类别在哪里指定

116022017144 opened this issue · 2 comments

求助!在代码里没找到绘制feature map的类别在哪里指定

应该在这边!但是不知道怎么指定类别,默认的1是什么类class_index=None
if self.class_index == None:
# get class index of highest prob among result probabilities
self.class_index = np.argmax(output.cpu().data.numpy())

image
一直报这种错,怎么解决啊