Skip to content

Commit

Permalink
revert back the binary model output
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobgil committed Jul 23, 2023
1 parent c01a950 commit af2d53a
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 torch.abs(model_output) * sign
return model_output * sign


class SoftmaxOutputTarget:
Expand Down

0 comments on commit af2d53a

Please sign in to comment.