pytorch-grad-cam icon indicating copy to clipboard operation
pytorch-grad-cam copied to clipboard

Message: axis 2 is out of bounds for array of dimension 2

Open imran-suny opened this issue 3 years ago • 1 comments

image

imran-suny avatar Aug 02 '22 17:08 imran-suny

Flatten-514 won't work as a target layer. It has to be the 2D output of a CNN. So Block8-511 for example or earlier, before the adaptive pooling that turns it into 1d

jacobgil avatar Aug 02 '22 18:08 jacobgil