Skip to content

Class activation maps API explained #1604

Answered by rijobro
kapsner asked this question in Q&A
Discussion options

You must be logged in to vote

a. for a difference between CAM and Grad-CAM, see this paper, specifically the section starting "Most relevant to our approach is the Class Activation Mapping (CAM) approach to localization...". Grad-CAM++ has also been wrapped in MONAI, see this paper for an explanation.

b. class_idx=None will use the label inferred by the model -- this may be correct or incorrect depending on how good your model is. class_idx=y_true will use the correct label. Both can be useful "which parts of the image were important for the model to reach a given decision?" vs. "which parts of the image were important for the model to arrive at the correct decision?"

c. if you click the "source" link in the help docu…

Replies: 2 comments 9 replies

Comment options

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

Answer selected by kapsner
Comment options

You must be logged in to vote
8 replies
@rijobro
Comment options

@rijobro
Comment options

@kapsner
Comment options

@rijobro
Comment options

@kapsner
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants