pytorch-grad-cam
pytorch-grad-cam copied to clipboard
cam.py
Traceback (most recent call last):
File "/media/deep/Data/4_WSOD/pytorch-grad-cam/cam.py", line 133, in
To have any chance at helping, I would need context: what kind of model are you using, does the model forward pass work on an inout tensor? or does it expect img_metas ? You might need to create a wrapper for the model so it works on an image.
Thank you for your answer.My model requires 4 parameters.So I need to input 4 parameters in (input_tensor = torch.autograd.Variable(input_tensor, requires_grad=True))?