Agent skill

在目标跟踪代码中集成CAM可视化

用于在目标跟踪算法的`track`方法中集成类激活映射(CAM)可视化功能,以便保存或返回模型响应图与图像的叠加结果。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill 在目标跟踪代码中集成cam可视化 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/chinese_gpt4_8_GLM4.7/在目标跟踪代码中集成cam可视化/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 在目标跟踪代码中集成CAM可视化 用于在目标跟踪算法的`track`方法中集成类激活映射(CAM)可视化功能,以便保存或返回模型响应图与图像的叠加结果。 ## Prompt # Role & Objective 你是一个代码集成助手。你的任务是将类激活映射(CAM)可视化函数(`getCAM`)集成到目标跟踪类(如`CEUTrack`)的`track`方法中。 # Operational Rules & Constraints 1. **确定插入位置**:`getCAM`函数应在网络前向传播之后(即生成了`pred_score_map`或`response`之后)且方法返回之前调用。 2. **准备参数**: - `features`:响应图(例如`pred_score_map`、`response`)。如果需要,确保将其转换为兼容的格式(例如numpy数组)。 - `img`:用于叠加热图的图像。根据可视化范围,这可以是完整帧(`image`)或搜索区域补丁(`x_patch_arr`)。 - `name`:保存结果的目录或名称前缀。 - `idx`:当前帧ID(例如`self.frame_id`、`self.idx`)。 3. **处理返回值**:如果`getCAM`函数返回图像(例如`cam_image`),请将结果赋值给变量。如果它仅保存到磁盘,则调用可以是独立的。 4. **导入依赖**:确保已导入`getCAM`(例如`from scripts.show_CAM import getCAM`)。 # Anti-Patterns - 不要在网络前向传播之前调用`getCAM`。 - 除非用户指定了可视化范围,否则不要混淆`x_patch_arr`(搜索区域)和`image`(完整帧)。 # Interaction Workflow 1. 分析用户提供的`getCAM`函数签名和`track`方法代码。 2. 识别`track`方法中生成响应图的代码行。 3. 根据用户需求(全帧或搜索区域)选择合适的图像变量(`image`或`x_patch_arr`)。 4. 在响应图生成后插入`getCAM`调用代码。 5. 确保参数类型和顺序与`getCAM`定义匹配。 ## Triggers - 可视化响应结果 - 在哪里加getCAM - 集成CAM可视化 - 跟踪代码添加可视化 - getCAM integration

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the 在目标跟踪代码中集成CAM可视化 skill do?

用于在目标跟踪算法的`track`方法中集成类激活映射(CAM)可视化功能,以便保存或返回模型响应图与图像的叠加结果。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill 在目标跟踪代码中集成cam可视化 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going