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 for custom defined architecture #23

Open
abhigoku10 opened this issue Aug 28, 2018 · 3 comments
Open

Grad-Cam for custom defined architecture #23

abhigoku10 opened this issue Aug 28, 2018 · 3 comments

Comments

@abhigoku10
Copy link

@jacobgil @twuilliam Hi thanks for the wonderful code , i had few queries

  1. Can we use this source code for any other architecture besides vg16/ resnet/customized architecture
  2. If we have to use this code then what are the modficiations to be made in the code
    Thnaks in advance
@jenskrauth
Copy link

Hey,
first of all load your own Model instead of VGG.
2. Apply your own Preprocessing depending on Model.
3. In modify_backprop re-instanciate your own Model.
4. in gradcam() resize the heatmap to you input size.
5. In compile_saliency_function exchange your layer of interest.
At last, take care of deprocessing.

Have fun

@navraj432
Copy link

@jenskrauth @abhigoku10 i tried to implement Grad-CAM for my own model. i couldn't, i got errors. do you have any code so that i can take it as a reference

@924175302
Copy link

@navraj432 @abhigoku10
Do you understand how the process is going?Grad-Cam for custom defined architecture

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

4 participants