Open akashlp27 opened 2 years ago
@akashlp27, it looks like there has been an issue while computing the gradients. The error suggests to enable torch.autograd.set_detect_anomaly(True)
for further investigation. This might not be specifically Captum issue. There might be an issue computing the gradients w.r.t. inputs. Perhaps you can first try to use autograd or captum.attr.Saliency and see if you are able to compute the gradients at all.
Hi, ya was able to use autograd with pytorch to generate the gradients, but having issues with generating the integrated gradients. But got same error with finding the Saliency.
@akashlp27, Saliency uses autograd to compute the gradients. It should be the same as using autograd. If you can provide a colab notebook we can debug it.
Attached is the full logs,
Process finished with exit code 1
So I was trying to generate the gradients for a yolor model, I have encountered with this error, any leads would help a lot ....