ascend/agent-skills/detectron2
Claude Code and agent skill by ascend/agent-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
在昇腾NPU容器中从源码安装detectron2。适用于实例分割、目标检测等模型的开发。
Install
npx vskill@latest install ascend/agent-skills/detectron2SKILL.md
ascend-detectron2-install
功能
在昇腾NPU容器中从源码安装 detectron2(NPU兼容版本)
前置条件
- mmcv 已安装
- 容器中已安装 Ascend CANN 和 torch_npu
- 工作目录已挂载
使用
步骤1:确认前置条件
确保 mmcv 已安装:
步骤2:从源码安装 detectron2
关键:在NPU环境下必须从源码安装,不能使用预编译的CUDA版本!
步骤3:验证安装
NPU验证(关键步骤):
如果输出包含 cuda 相关路径,说明安装的是 CUDA 版本,需要卸载并重新从源码安装:
常见问题
- CUDA版本问题:NPU环境必须从源码安装,使用预编译CUDA版本会导致运行时错误
- 依赖冲突:可能需要先卸载已安装的CUDA版本detectron2
决策指引
向用户提问:
- 是否已安装detectron2?是什么版本?
- 当前环境是NPU还是CUDA?
安装后必须验证:
- 确认 site.getsitepackages() 中没有 cuda 相关路径
- 否则需要卸载重装
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/drivingsdk-ascend-model-migration/ascend-mmlab-install-suite/detectron2/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ascend/agent-skills/detectron2)