Skip to content
Back to skills

Saliency And Cam

ASecurity

"Routes users who need saliency, guided or rectified saliency,

  • 247 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 8, 2026
documentationapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill saliency-and-cam --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Saliency And Cam?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Saliency And Cam
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-saliency-and-cam/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-saliency-and-cam)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: saliency-and-cam
description: "Routes users who need saliency, guided or rectified saliency,
  Grad-CAM, custom-loss saliency, or regression attention workflows for
  keras-vis."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Saliency and CAM

Use this sub-skill when the user wants input-space attention maps from a trained keras-vis model.

## Covers

- `visualize_saliency`
- `visualize_saliency_with_losses`
- `visualize_cam`
- `visualize_cam_with_losses`
- regression attention with `grad_modifier`
- guided or rectified saliency with `backprop_modifier`
- penultimate-layer selection for Grad-CAM

## Routes out

- Activation image synthesis belongs in `../activation-maximization/SKILL.md`.
- New loss/optimizer internals belong in `../optimization-building-blocks/SKILL.md`.
- Heatmap overlay, color conversion, and image composition belong in `../image-utilities/SKILL.md`.

## What to read first

- `references/api-reference.md` for exact signatures, defaults, shapes, and modifiers.
- `references/workflows.md` for classification, regression, and Grad-CAM recipes.
- `references/troubleshooting.md` for penultimate-layer, modifier, and shape recovery.

## Smoke check

Use `scripts/saliency_smoke.py` to build a tiny deterministic model and print saliency and optional CAM heatmap shapes and value ranges.

## Practical rule

Prefer saliency when the model has no close convolutional or pooling layer before the target. Use CAM when a nearby spatial layer exists and you want a class-localized spatial explanation.

Files in this skill

  • SKILL.md1.5 KB
  • references/api-reference.md3.8 KB
  • references/troubleshooting.md3.9 KB
  • references/workflows.md4 KB
  • scripts/saliency_smoke.py8.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.