Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mducducd
Copy link
Collaborator

@mducducd mducducd commented Sep 24, 2025

Adjust STAMP gradient function as follows:

  • Old: logits -> softmax -> compute gradients (may cause vanishing signal)
  • New: logits -> compute gradients -> softmax
    This adjustment is more consistent with the method described in the Grad-CAM paper. As a result, the colors across slides now appear more consistent, and each heatmap has clearer, high-contrast regions.

Copy link
Collaborator

@EzicStar EzicStar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@EzicStar EzicStar merged commit ff96f8c into main Sep 24, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants