jacobgil / pytorch-grad-cam

Advanced AI Explainability for computer vision. Support for CNNs, Vision Transformers, Classification, Object detection, Segmentation, Image similarity and more.
https://jacobgil.github.io/pytorch-gradcam-book
MIT License
9.82k stars 1.52k forks source link

base_cam.py file #416

Open nikhil231062 opened 1 year ago

nikhil231062 commented 1 year ago

Want to know about base_cam.py , is this implementation of the earlier version of grad_CAM , I mean the normal Class Activation Maps based on paper "Learning Deep Features for Discriminative Localization" ?

nikhil231062 commented 1 year ago

Want to know about base_cam.py , is this implementation of the earlier version of grad_CAM , I mean the normal Class Activation Maps based on paper "Learning Deep Features for Discriminative Localization" ?

jacobgil commented 1 year ago

Hi, no, it's just a common abstraction for tall the cam methods. The original CAM isn't implemented here, since it's relevant only for certain architecture (with a GAP + classifier at the end, like resnet).