Installs OpenMMLab libraries (mmcv, mmdet, mmdet3d, detectron2) on Ascend NPU containers via source compilation with patches. Supports local+remote hybrid workflows.
Ships in external-gitcode-ascend-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
在昇腾NPU容器环境中安装 OpenMMLab 系列库,支持:
mmcv/SKILL.mdmmdet/SKILL.mdmmdet3d/SKILL.mddetectron2/SKILL.md目标服务器信息:
conda环境:
网络情况:
在安装 OpenMMLab 库之前,需要安装前置依赖包。根据目标 PyTorch 版本选择对应的 requirements 文件:
| PyTorch版本 | requirements文件 |
|---|---|
| torch 2.1.x | requirements.txt |
| torch 2.6.0 | requirements_pytorch2.6.0.txt |
| torch 2.7.1 | requirements_pytorch2.7.1.txt |
| torch 2.7.1 (Ascend NPU) | requirements_pytorch2.7.1_a5.txt |
文件位置参考:DrivingSDK/model_examples/BEVFormer/requirements*.txt
安装方式:
pip install -r /path/to/requirements_xxx.txt
严禁使用 pip install mmcv-full 等方式直接安装,因为:
正确流程:
安装完成后必须验证:
python -c "import site; print([p for p in site.getsitepackages() if 'cuda' in p.lower()])"
如果有 CUDA 相关路径输出,说明安装的是 CUDA 版本,需要重新安装。
| 情况 | 策略 |
|---|---|
| 服务器直连GitHub正常 | 在服务器上直接 git clone |
| 服务器网络超时 | 本地克隆 → scp传输到服务器 |
| 有代理 | 配置代理后操作 |
mmcv (基础)
├── mmdet
├── mmdet3d → 依赖 mmsegmentation
└── detectron2
向用户提问确认:
安装前检查:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ascend-npu, openmmlab, mmcv, mmdetection, detectron2, npu-setup
/external-gitcode-ascend-skills:external-gitcode-ascend-ascend-mmlab-install-suitefrom external-gitcode-ascend-skills
npx claudepluginhub ascend-ai-coding/awesome-ascend-skills --plugin external-gitcode-ascend-skills91 skills in this plugin
/external-gitcode-ascend-analyse-coverage分析测试覆盖率盲区,生成覆盖率分析报告/external-gitcode-ascend-arxiv-recommendation-npu自动化推荐系统论文发现流水线。抓取 arxiv 推荐论文,检测源码,生成待迁移任务清单,由 npu-model-migration skill 完成 NPU 适配。/external-gitcode-ascend-ascendc-operator-code-gen根据设计文档生成 AscendC 算子完整代码实现并完成框架适配。TRIGGER when: 设计文档已完成,需要生成 op_host/op_kernel 代码、注册到 PyTorch 框架、编译测试。关键词:代码生成、op_host、op_kernel、tiling、kernel、框架适配、算子注册。Other plugins' skills for the same job