Traceback (most recent call last):
File "E:/chrome下载/Grad-CAM.pytorch-master/Grad-CAM.pytorch-master/main.py", line 198, in
main(arguments)
File "E:/chrome下载/Grad-CAM.pytorch-master/Grad-CAM.pytorch-master/main.py", line 151, in main
inputs = prepare_input(img)
File "E:/chrome下载/Grad-CAM.pytorch-master/Grad-CAM.pytorch-master/main.py", line 90, in prepare_input
image -= means
ValueError: operands could not be broadcast together with shapes (224,224,4) (3,) (224,224,4)
ValueError: operands could not be broadcast together with shapes (224,224,4) (3,) (224,224,4) 加载自己模型的报错,修改了get_net(net_name, weight_path=None)部分