Skip to content

How do I visualize the features from a checkpoint? #117

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

You must be logged in to vote

Hi @ldlshizhu 👋

I'll have to make a few assumptions as I'm not sure I fully understand your question. Please provide a snippet about how you instantiate your model using the file you mention to clarify this 🙏

So my reasoning would be as follows:

  1. First, if you are actually talking about feature map visualization, this isn't the scope of this project. TorchCAM focuses on Class Activation Maps, so if a feature map is the output of a given layer, the CAM would somehow represent the spatial influence of inputs on the results.
  2. Assuming we are talking about CAMs (and not feature maps), once you have instantiated your model, you can easily extract the CAM using the method of your choice as shown…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@frgfm
Comment options

@ldlshizhu
Comment options

Answer selected by frgfm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type: improvement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #116 on November 22, 2021 22:37.