Skip to content

Commit af2d53a

Browse files
committed
revert back the binary model output
1 parent c01a950 commit af2d53a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_grad_cam/utils/model_targets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __call__(self, model_output):
3232
sign = 1
3333
else:
3434
sign = -1
35-
return torch.abs(model_output) * sign
35+
return model_output * sign
3636

3737

3838
class SoftmaxOutputTarget:

0 commit comments

Comments
 (0)