Skip to content

is it possible to use the provided cams with own models? #135

Answered by frgfm
cherepanovic asked this question in Q&A
Discussion options

You must be logged in to vote

Hello there @cherepanovic 👋

This is entirely possible, the whole project was meant for people willing to check class activation maps on their custom CNN architecture 👍

To do this, I'd suggest checking the example in the README: https://github.com/frgfm/torch-cam#retrieving-the-class-activation-map
You'll only have to change the model definition from model = resnet18(pretrained=True).eval() to your custom architecture definition (+ loading your trained parameters)

Let me know if it's still confusing 👍

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by frgfm
Comment options

You must be logged in to vote
1 reply
@frgfm
Comment options

Comment options

You must be logged in to vote
1 reply
@frgfm
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants