Skip to content

GradCAM does not detect correct convolutional layer in multi-input case #96

Description

@marieff587

Thank you for this useful visualization package!

Right now I have a two-input, one-output model as follows
image

I am using GradCAM, with code snippet below. I have stated my penultimate layer to be 'ria-conv', which happens after concatenation of both networks.

image

However, the dimension of cam is 2 - one for each network (15 * 256 * 320 is my image count * image dimensions) , as shown in this screenshot
image

As far as my understanding goes, since the actual last convolutional layer is after concatenation, cam should be 1 * 15 * 256 * 320? This happens both when I explicitly state the penultimate layer and when I state it as -1.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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