You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tutorial gradCAM 3D seems to have inverted heatmap #1796
Following this tutorial, and comparing with the original paper on GradCAM (Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization), I have the impression that there is an issue somewhere with the activation score or the heatmap colors because red should be related to high importance score and blue the reverse.
Activity
KumoLiu commentedon Aug 22, 2024
Hi @CamilleDelgrange, thanks for your interest here.
Yes, the
default_normalizerused in GradCam will flip magnitudes.https://github.com/Project-MONAI/MONAI/blob/dev/monai/visualize/class_activation_maps.py#L37
You can simply modify it by adding a customized normalizer.
Hope it helps, thanks.