Skip to content

TorchCAM Notebooks

Explore these runnable notebooks, hosted in frgfm/notebooks:

Each notebook includes setup cells that pin a development snapshot with fixes after TorchCAM 0.5.0. Run those cells to use the intended implementation.

Notebook Use case Run
Quicktour Extract CAMs, create overlays, and fuse multiple layers Colab
Debug a prediction Compare predicted and expected classes and save an evidence bundle Colab
Vision Transformers Explain a torchvision ViT with LeGrad and token-based GradCAM Colab
Latency benchmark Measure CAM extraction and end-to-end latency on your hardware Colab
Performance benchmark Evaluate confidence and deletion/insertion faithfulness with an explicit baseline Colab