Skip to content

Commit

Permalink
Binary model target
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobgil committed Jun 15, 2023
1 parent 2183a9c commit 58a565a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_grad_cam/utils/model_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __call__(self, model_output):
sign = 1
else:
sign = -1
return model_output * sign
return torch.abs(model_output) * sign


class SoftmaxOutputTarget:
Expand Down

0 comments on commit 58a565a

Please sign in to comment.