ModuleNotFoundError: No module named 'pytorch_grad_cam.metrics'

Pytorch Grad-Cam was working well with my resnet18 models till 23rd of Aug 2022. Suddenly from today, 24th Aug I was constantly getting this error - ModuleNotFoundError: No module named ‘pytorch_grad_cam.metrics’, on Spyder (Anaconda) and colab. This was reported and Jacobgil fixed it a few hours back in the latest version : Grad-Cam 1.4.5. The error still persists in Spyder. Grad-Cam has started working in colab.
Kindly help.

1 Like

dear drashokpuri.

Thank you for your contribution to the anaconda community.
The reply is very late, but ‘pytorch_grad_cam.metrics’ has since been updated to version 1.35, and it seems that spyder is working without problems.

Best regards.
ktsh.tanaka.2020