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

EfficientNet GradCAM doesn't work #30

Closed
vesalucsf opened this issue Sep 3, 2020 · 2 comments
Closed

EfficientNet GradCAM doesn't work #30

vesalucsf opened this issue Sep 3, 2020 · 2 comments

Comments

@vesalucsf
Copy link

Could you advice on how to plot GradCAM for EfficientNet. The current strategy you mentioned on the tutorials won't work, specially my last activation is a sigmoid.

@keisen
Copy link
Owner

keisen commented Sep 4, 2020

Thank you for letting us known!

I will examine the cause of the problem.
Because I want to understand the error and the situation where you find the problem, could you please submit the code snippet that reproduce the problem?

Thanks!

@keisen
Copy link
Owner

keisen commented Oct 14, 2020

Hi, @vesalucsf , I'm sorry for the late reply.
I've tried to reproduce the problem, but couldn't it.

specially my last activation is a sigmoid.

Did you replace the sigmoid function to a linear function?
If not, please try it such as below:

model.layers[-1].activation = tf.keras.activations.linear

I'll close this issue.
But when the problem is NOT resolved or you have any question, please feel free to reopen this issue.

Thanks!

@keisen keisen closed this as completed Oct 14, 2020
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

2 participants