CAM icon indicating copy to clipboard operation
CAM copied to clipboard

AttributeError: 'tuple' object has no attribute 'softmax'

Open allenlittlestar opened this issue 4 years ago • 0 comments

Traceback (most recent call last): File "CAM3.py", line 69, in h_x = F.softmax(logit, dim=1).data.squeeze() File "/home/omnisky/anaconda2/envs/swin/lib/python3.7/site-packages/torch/nn/functional.py", line 1512, in softmax ret = input.softmax(dim) AttributeError: 'tuple' object has no attribute 'softmax'

When I put pytorch_ CAM. Py encountered the above problems when it was used in my own model. Do you know how to solve them? Thank you very much and look forward to your reply@Bolei Zhou

allenlittlestar avatar Dec 15 '21 07:12 allenlittlestar