-
Hi, I do have some questions on how to correctly apply the monai class activation maps (CAM) API and would be very happy to get some help on this topic.
Many thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
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. c. if you click the "source" link in the help documentation, you get a bit more information (link): "index of the target layer if there are multiple target layers". |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
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…