ramprs / grad-cam

[ICCV 2017] Torch code for Grad-CAM
https://arxiv.org/abs/1610.02391
1.48k stars 224 forks source link

grad can be implicitly created only for scalar outputs #26

Open SevenTae opened 2 years ago

SevenTae commented 2 years ago

I used unet to train the voc data set, loaded my own weights and took the activation of a certain layer in the middle, but got this error “ grad can be implicitly created only for scalar outputs”

Kyle-fang commented 1 year ago

Excuse me, have you solved this problem? I had the same problem.