Language:
🇺🇸
🇨🇳
«cam» implements Gradient-weighted Class Activation Mapping.
Through CAM (Class Activation Mapping), I can effectively visualize the model's focus on images, helping me better apply them to practical scenarios.
This warehouse has implemented Grad-CAM (Weight the 2D activations by the average gradient). At present, there are many other variants besides CAM and Grad-CAM. You can view the usage of jacobgil/pytorch-grad-cam and frgfm/torch-cam
# Custom Grad-CAM
python imagenet/Grad-CAM.py --arch resnet50 imgs/cat.jpg
# jacobgil/pytorch-grad-cam
python samples/pytorch-grad-cam.py imgs/cat.jpg
- zhujian - Initial work - zjykzj
Anyone's participation is welcome! Open an issue or submit PRs.
Small note:
- Git submission specifications should be complied with Conventional Commits
- If versioned, please conform to the Semantic Versioning 2.0.0 specification
- If editing the README, please conform to the standard-readme specification.
Apache License 2.0 © 2023 zjykzj