Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More issues with Gradcam #267

Open
virilo opened this issue Feb 5, 2021 · 1 comment
Open

More issues with Gradcam #267

virilo opened this issue Feb 5, 2021 · 1 comment

Comments

@virilo
Copy link

virilo commented Feb 5, 2021

I've found this issue #184 but it's about a checkboard effect. And it's not my case.

I'm using GradCAM and GradCAM++ to EfficientNet-B0 layer model._blocks[-1]._project_conv

And the results are weird, like shifted:

efficientnet-b0-issue

One try, using this implementation:

Another try, trying to reproduce this script Results and more shifted images here

The previous Kaggle script is dated 2019/06/05. It seems that GradCAM worked with efficientnet_pytorch these days

@ORippler
Copy link

ORippler commented Mar 19, 2021

You could try downgrading to efficientnet-pytorch==0.6.3. We are working on a different problem, and noticed the same "shift to the bottom right" phenomenon with efficientnet-pytorch==0.7.0 (which is not present in efficientnet-pytorch==0.6.3).

Possible reason might be this PR, which modified the way zero-padding is performed. Maybe it introduced a Bug here ?

CCing @lukemelas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants