I am trying to create a CAM for my binary classification model. My model has a CNN (ResNet50) + bidirectional LSTM structure for which the last layers look like this:

grafik711×379 8.75 KB

I know that for CAM usually we grab the last Conv layer and then use a softmax. But which layer do I have to use considering my model structure?