Skip to content

Grad-CAM explanation in the classification inference UI - #178

Open
Alvin-Nahabwe wants to merge 1 commit into
chore/remove-asr-fix-dl-uifrom
feat/gradcam-ui
Open

Grad-CAM explanation in the classification inference UI#178
Alvin-Nahabwe wants to merge 1 commit into
chore/remove-asr-fix-dl-uifrom
feat/gradcam-ui

Conversation

@Alvin-Nahabwe

Copy link
Copy Markdown
Contributor

Stacked on #174 (chore/remove-asr-fix-dl-ui). Diff collapses to just the UI change once #174 merges. Needs the API-side endpoint (companion PR on no-code-transformers).

What

The Inference tab's image-classification panel gains an "Explain prediction (Grad-CAM heatmap)" checkbox. When ticked:

  • calls /explain/image-classification instead of plain inference,
  • shows the predicted class with its confidence,
  • renders the returned heatmap overlay, with a caption ("warmer regions contributed more").

A non-expert user gets a visual answer to "why did it say that?" — the point of explainability on this platform.

Verified

parse() passes on both changed files. End-to-end behaviour depends on the API endpoint (verified separately on CPU).

The Inference tab's image-classification panel gains an "Explain
prediction (Grad-CAM heatmap)" checkbox. When ticked, the app calls the
new /explain/image-classification endpoint instead of plain inference,
shows the predicted class with its confidence, and renders the returned
heatmap overlay so a non-expert user can see which regions drove the
prediction.

Verified with parse() on both changed files. Depends on the API-side
endpoint (companion PR on no-code-transformers).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant