界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

saliency-and-cam

saliency-and-cam

【效率与协作】Routes users who need saliency, guided or rectified saliency, Grad-CAM, custom-loss saliency, or regression attention workflows for keras-vis.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

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.

我的收藏