external-gitcode-ascend-mmdet
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "external-gitcode-ascend-mmdet" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d7460f8503bfd84953c1945f94cacb17a3f971c7653598c481694954a9d7b3f0. Verify the upstream source and version against https://github.com/ascend-ai-coding/awesome-ascend-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Installs mmdetection inside an Ascend NPU container for use in developing object detection models.
Introduction source: third_party · ascend-ai-coding · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- ```
- Software, accounts and paid services
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: external-gitcode-ascend-mmdet
description: 在昇腾NPU容器中安装mmdetection。适用于目标检测模型的开发。
type: capability
original-name: ascend-mmdet-install
synced-from: https://gitcode.com/Ascend/agent-skills
synced-date: '2026-05-26'
synced-commit: 1f7666e7768a0ceb21bb1d40ce4b5179fcb6f1d6
license: UNKNOWNascend-mmdet-install
功能
在昇腾NPU容器中安装 mmdetection(2D目标检测库)
前置条件
- mmcv 已安装
- 容器中已安装 Ascend CANN 和 torch_npu
- 工作目录已挂载
使用
步骤1:确认前置条件
确保 mmcv 已正确安装:
python -c "import mmcv; print(mmcv.__version__)"
步骤2:克隆mmdetection仓库
根据网络情况选择:
服务器直连:
git clone -b v2.24.0 https://github.com/open-mmlab/mmdetection.git
服务器网络超时:配置代理或本地克隆后scp传输
# 方案1:配置代理
export http_proxy=http://proxy:port
export https_proxy=http://proxy:port
git clone -b v2.24.0 https://github.com/open-mmlab/mmdetection.git
# 方案2:本地克隆后传输(仍使用GitHub链接)
# 本地执行
git clone -b v2.24.0 https://github.com/open-mmlab/mmdetection.git
scp -r mmdetection user@server:/target/path/
重要:始终使用GitHub官方链接,不使用镜像站点。
步骤3:应用patch(如有)
cd mmdetection
cp /path/to/DrivingSDK/model_examples/BEVFormer/mmdet_config.patch .
git apply --reject mmdet_config.patch
步骤4:安装
source /opt/conda/bin/activate <conda-env-name>
pip install -e .
步骤5:验证安装
python -c "import mmdet; print(mmdet.__version__)"
NPU验证:
python -c "import site; print([p for p in site.getsitepackages() if 'cuda' in p.lower()])"
# 应输出空列表
常见问题
- 依赖缺失:确保 mmcv 和 mmengine 已安装
- patch失败:跳过非关键patch或手动处理
决策指引
向用户提问:
- mmcv 是否已安装?
- 服务器网络能否访问GitHub?
- 是否需要应用特定patch?
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 为昇腾NPU开发者提供了mmdetection安装的完整解决方案
- 覆盖了多种网络环境下的部署场景
Highlights
- description准确描述了核心功能和目标用户群体
- 触发词边界清晰,不易与其他Skill混淆
Areas to improve
-
缺少When to Use章节 Reported severity: Minor
文档结构完整但未包含明确的'何时使用'指引章节
Recommendation: 建议添加'何时使用'章节帮助用户快速判断是否需要使用此Skill
Highlights
- 步骤划分清晰,包含完整的前置条件检查和验证流程
- 提供了多种网络环境下的灵活部署方案
- 文档结构规范,示例代码完整可执行
Highlights
- 提供了代理配置和本地传输等多种网络适配方案
- patch应用包含错误处理机制(--reject参数)
- 包含专门的NPU环境验证逻辑确保兼容性
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 69
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- gitcode.com
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.