Caoliangjie / pytorch-gradcam-resnet50

CAM图的resnet50版本
150 stars 42 forks source link

error #6

Closed HuangQinJian closed 4 years ago

HuangQinJian commented 5 years ago

GuidedBackpropReLUModel has bugs.

HuangQinJian commented 5 years ago

image image

Caoliangjie commented 5 years ago

Hi HuangQinJian, it means that the input.grad is None. Because the baseline network is vgg19 and there are some differences with resnet50 network. That's my fault beacause I just want to get the feature map before so I didin't test this class before. If the gradients is None, maybe there are some questions during the whole process. You can try to solve this question first. Maybe I will have time to solve that in this week....

HuangQinJian commented 5 years ago

Hi HuangQinJian, it means that the input.grad is None. Because the baseline network is vgg19 and there are some differences with resnet50 network. That's my fault beacause I just want to get the feature map before so I didin't test this class before. If the gradients is None, maybe there are some questions during the whole process. You can try to solve this question first. Maybe I will have time to solve that in this week....

Thanks! Look forward your reply !

tuji-sjp commented 4 years ago

Hi HuangQinJian, it means that the input.grad is None. Because the baseline network is vgg19 and there are some differences with resnet50 network. That's my fault beacause I just want to get the feature map before so I didin't test this class before. If the gradients is None, maybe there are some questions during the whole process. You can try to solve this question first. Maybe I will have time to solve that in this week....

您好,我也遇到了同样的问题,不知道如何解决,所以想请问您知道如何解决Guide gradcam的bug吗?

CWF-999 commented 4 years ago

Hi HuangQinJian, it means that the input.grad is None. Because the baseline network is vgg19 and there are some differences with resnet50 network. That's my fault beacause I just want to get the feature map before so I didin't test this class before. If the gradients is None, maybe there are some questions during the whole process. You can try to solve this question first. Maybe I will have time to solve that in this week....

Thanks! Look forward your reply !

do you have fixed it?

Caoliangjie commented 4 years ago

Sorry for being so long to fix this error, that's my fault because I think I do have Procrastination. Guidedbackprop's bug has been fixed but there are still a bug, I will fix it later.

Caoliangjie commented 4 years ago

fix this bug,now we can use guided backprop cam to visualize now.