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

Grad cam issue #12

Open
ntirupathirao18 opened this issue Jul 29, 2022 · 0 comments
Open

Grad cam issue #12

ntirupathirao18 opened this issue Jul 29, 2022 · 0 comments

Comments

@ntirupathirao18
Copy link

ntirupathirao18 commented Jul 29, 2022

Hello ,

base_model, preprocess_input = Classifiers.get('seresnext50')
model = base_model(input_shape=(512, 512, 20, 1 ), weights=None , include_top = False )
x = Flatten()(model.output)
x = Dense(1024, activation= 'sigmoid')(x)
x = Dense(2, activation= 'sigmoid')(x)

Trying to train a model , the accuracy is everything resides upto expectation, but the gradcam are quite off from the region of the focus - how the accuracy is good but the grad cam is off the focus of targeted area .

Using the layer - 'activation-161' as output
ref - https://github.com/fitushar/3D-Grad-CAM/blob/master/3DGrad-CAM.ipynb for the gradcam generation code , the results are always at the border of the image.

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

1 participant