Skip to content

There is a problem with the 'Activation map' formula in the code #1

Description

@chaoyu1999

@donalee
The location of the problem is line 149 of the dtw_loss() funtion of the 'model.py' file.
def dtw_loss(self, out, wlabel): h = self.fc(out).squeeze(dim=2) dscore = torch.sigmoid(self.fc(out).squeeze(dim=2)) with torch.no_grad(): # Activation map actmap = h actmin = torch.min(actmap, dim=1)[0] actmap = actmap - actmin.unsqueeze(dim=1) actmax = torch.max(actmap, dim=1)[0] actmap = actmap / actmax.unsqueeze(dim=1)
Min-Max normalization should be (actmap - actmin)/(actmax - actmin), but in the code is (actmap - actmin)/actmax.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions