We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2183a9c commit 58a565aCopy full SHA for 58a565a
pytorch_grad_cam/utils/model_targets.py
@@ -32,7 +32,7 @@ def __call__(self, model_output):
32
sign = 1
33
else:
34
sign = -1
35
- return model_output * sign
+ return torch.abs(model_output) * sign
36
37
38
class SoftmaxOutputTarget:
0 commit comments