Gradient class activation maps are a visualization technique for deep learning networks.
See the paper: https://arxiv.org/pdf/1610.02391v1.pdf
A: For example, these two are the most popular efficientdet-pytorch,
- Add EfficientNet for Visualization (Can use for both torchvision.models and EfficientNet from lukemelas/EfficientNet-PyTorch)
- Add multi-layer visualization for comparison
- Switch GuidedBackPropagationReLU to GuidedBackPropagationSwish for EfficientNet
Usage: python grad-cam.py --image-path <path_to_image>
To use with CUDA:
python grad-cam.py --image-path <path_to_image> --use-cuda
Reference: Appreciate the great work from the following repositories: