Mindket

TorchCAM

Newversion 1 · updated

Overview

A Docker app from frgfm for class activation maps on PyTorch models, such as CAM and Grad-CAM, which show where an image model looked. For developers who want to see its output in a browser.

TorchCAM is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Nothing to install if you use the Space online
  • Python, to download the files with the Hugging Face tool
  • Docker, to build and run a copy
Runs in
  • A web browser, on the Space's page at Hugging Face
  • Your own computer, on Windows, macOS or Linux with Docker
Start with
pip install -U huggingface_hub
hf download frgfm/torch-cam --repo-type space --local-dir torch-cam
cd torch-cam

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system
DockerContainer

About

What it is

TorchCAM is a Docker-based app from frgfm for class activation maps on PyTorch models. The README line names CAM and Grad-CAM as examples. Such maps show which parts of a picture a model relied on. The Space runs on port 8501 on basic CPU hardware at Hugging Face.

Who it suits

It suits machine learning developers and students who want to see why an image model made a choice, without writing code first.

IndustryWho uses itHow they use itExample
Machine learningModel developersCheck what a vision model focuses onRun a picture and read the activation map
ResearchInterpretability researchersTry activation map methods side by sideCompare the output of two methods
EducationStudentsSee how explanation maps lookTry a photo of a single object

You can skip it if you want to run the maps inside your own code, since this is a browser demo.

Where to use it

  • A web browser, on the Space's page at Hugging Face
  • Your own computer, on Windows, macOS or Linux with Docker
Use caseWhoWhat they get back
Explain a predictionDevelopersA class activation map for an image
Teach the ideaInstructorsA visual example of model attention
Try the demo locallyDevelopersThe same app running in a container

How to set it up

  • Nothing to install if you use the Space online
  • Python, to download the files with the Hugging Face tool
  • Docker, to build and run a copy
  1. Open the Space's page on Hugging Face to use it online.
  2. To run a copy, install huggingface_hub and download the Space into a folder.
  3. Move into that folder and build the Docker image.
  4. Run the image with port 8501 published.
pip install -U huggingface_hub
hf download frgfm/torch-cam --repo-type space --local-dir torch-cam
cd torch-cam
docker build -t torch-cam .
docker run -it -p 8501:8501 torch-cam

How to use it

Open the Space and give it a picture. The README gives no steps, so follow the page's own controls. After the docker run command above, open the app in a browser on port 8501 of your own machine.

docker run -it -p 8501:8501 torch-cam

Example

Open the Space online and give it a clear photo of a single object. You should get a map showing which parts of the picture mattered to the model, though the README does not describe the controls.

For newcomers and experts

If you are new, think of the map as a heat overlay that shows where the model looked. Try a photo with one clear subject first.

If you know the field, the Space is a Dockerfile plus a src folder serving an app on port 8501. The README line mentions CAM and Grad-CAM, which are standard class activation map methods. The record also lists several language and vision models whose role in this demo the README does not explain.

  1. You give the app a picture
  2. A PyTorch model classifies it
  3. The CAM method traces where it looked
  4. The page shows the activation map

Good to know

  • License: apache-2
  • Cost to run: none named. The online Space runs on Hugging Face, and a copy needs Docker.
  • Data it reaches: the pictures you give it, and the models its code pulls from Hugging Face.
  • Limits: the README is a single line and gives no list of supported models or methods.

README and files

README

TorchCAM

A Docker app from frgfm for class activation maps on PyTorch models, such as CAM and Grad-CAM, which show where an image model looked. For developers who want to see its output in a browser.

Made by frgfm on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.

About

What it is: TorchCAM is a Docker-based app from frgfm for class activation maps on PyTorch models. The README line names CAM and Grad-CAM as examples. Such maps show which parts of a picture a model relied on. The Space runs on port 8501 on basic CPU hardware at Hugging Face.

Who it suits: It suits machine learning developers and students who want to see why an image model made a choice, without writing code first.

Industry | Who uses it | How they use it | Example
Machine learning | Model developers | Check what a vision model focuses on | Run a picture and read the activation map
Research | Interpretability researchers | Try activation map methods side by side | Compare the output of two methods
Education | Students | See how explanation maps look | Try a photo of a single object

You can skip it if you want to run the maps inside your own code, since this is a browser demo.

Where to use it:

  • A web browser, on the Space's page at Hugging Face
  • Your own computer, on Windows, macOS or Linux with Docker
Use case | Who | What they get back
Explain a prediction | Developers | A class activation map for an image
Teach the idea | Instructors | A visual example of model attention
Try the demo locally | Developers | The same app running in a container

How to set it up:

  • Nothing to install if you use the Space online
  • Python, to download the files with the Hugging Face tool
  • Docker, to build and run a copy
  1. Open the Space's page on Hugging Face to use it online.
  2. To run a copy, install huggingface_hub and download the Space into a folder.
  3. Move into that folder and build the Docker image.
  4. Run the image with port 8501 published.
pip install -U huggingface_hub
hf download frgfm/torch-cam --repo-type space --local-dir torch-cam
cd torch-cam
docker build -t torch-cam .
docker run -it -p 8501:8501 torch-cam

How to use it: Open the Space and give it a picture. The README gives no steps, so follow the page's own controls. After the docker run command above, open the app in a browser on port 8501 of your own machine.

docker run -it -p 8501:8501 torch-cam

Example: Open the Space online and give it a clear photo of a single object. You should get a map showing which parts of the picture mattered to the model, though the README does not describe the controls.

For newcomers and experts: If you are new, think of the map as a heat overlay that shows where the model looked. Try a photo with one clear subject first.

If you know the field, the Space is a Dockerfile plus a src folder serving an app on port 8501. The README line mentions CAM and Grad-CAM, which are standard class activation map methods. The record also lists several language and vision models whose role in this demo the README does not explain.

You give the app a picture
A PyTorch model classifies it
The CAM method traces where it looked
The page shows the activation map

Good to know:

  • License: apache-2
  • Cost to run: none named. The online Space runs on Hugging Face, and a copy needs Docker.
  • Data it reaches: the pictures you give it, and the models its code pulls from Hugging Face.
  • Limits: the README is a single line and gives no list of supported models or methods.

On Hugging Face, 13 November 2026

  • Likes: 16
  • Built with: docker
  • License: apache-2.0

Links

Try it

Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.

Files
README.md  4 KB

1 file, 4 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face Spaces in the same category that share the most tags with this one.

ProductLikesBuilt withLicenseLast change
TorchCAM This page16dockerapache-2.0
Anime Recommendation SystemShares streamlit9streamlitapache-2.0
Image Text DetectionShares streamlit6streamlitmit
Spacy NerShares streamlit2streamlitcc-by-nc-sa-4.0
NER Biomedical PHI EnsembleShares streamlit2streamlitmit
Harry Potter Q AShares streamlit1streamlitafl-3.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

What people say

Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.

Searched

More from Mindket

See all from Mindket

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New

Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…

New

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Similar in Developer

See all in Developer

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

buzz

block · Kit

Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…

New37.3k

plannotator

backnotprop · Kit

Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.

New10.5k