Skip to content

Issues with applying GradCam on this implementation #184

@MrGranddy

Description

@MrGranddy

Hello there, so I've been working with this repo for quite a time now, can say since it was released. Trying to extract GradCam images as explained here https://arxiv.org/abs/1610.02391 I have quite some problems.
So some CAM images look quite nice but some constantly occuring problems are present. The major one is checkerboard patterns, as can be seen below:

image
image

I'm %99 sure my GradCAM implementation is correct yet I suspect some things causing this, it can be the padded conv2d functions or maybe swish. I generate the images from the features just before the global average pooling, with EffNet-B7 the shape of the tensor is 1, 2560, 18, 18. So I figured B0 does not do this, or if I pick some lower level feature tensor again the checkerboard pattern vanishes yet then the focus is on the low features of the images. Anyone have any idea? Does the original implementation has the same problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions