TorchCAM: class activation explorer#

TorchCAM provides a minimal yet flexible way to explore the spatial importance of features on your PyTorch model outputs. Check out the live demo on HuggingFace Spaces 🤗

code_snippet

This project is meant for:

  • ⚡ exploration: easily assess the influence of spatial features on your model’s outputs

  • 👩‍🔬 research: quickly implement your own ideas for new CAM methods

CAM zoo#

Activation-based methods#

Gradient-based methods#