Skip to content
Back to skills

Mmdetection

ASecurity

"Use this skill when working with MMDetection 3.x for object

  • 247 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 8, 2026
devopspythonbashdockertestingapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill mmdetection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mmdetection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mmdetection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-mmdetection/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-mmdetection)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mmdetection
description: "Use this skill when working with MMDetection 3.x for object
  detection, instance/panoptic segmentation, tracking-adjacent configs, model
  zoo configs, inference, visualization, training/testing commands, datasets,
  evaluation, or extension work."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# MMDetection

MMDetection is OpenMMLab's PyTorch-based detection toolbox. Use this root skill as a router, then open the nearest sub-skill for concrete commands, APIs, config patterns, and troubleshooting.

## Quick Import and Environment Check

Use the bundled checker when diagnosing an install before deeper work:

```bash
python scripts/check_mmdet_environment.py
```

A healthy base environment should import `mmdet`, `mmcv`, `mmengine`, and `torch`, report compatible MMDetection/MMCV/MMEngine versions, and expose inference APIs such as `DetInferencer`, `init_detector`, and `inference_detector`.

Important dependency facts:

- MMDetection 3.3.0 requires `mmcv>=2.0.0rc4,<2.2.0` and `mmengine>=0.7.1,<1.0.0`.
- Install full `mmcv` for workflows importing `mmcv.ops`; `mmcv-lite` can fail with `ModuleNotFoundError: mmcv._ext`.
- Match `torch`, `mmcv`, CUDA/CPU wheels, NumPy, and OpenCV carefully; ABI mismatches often appear during API imports.
- CPU inspection/inference is possible for many workflows, but some ops and real training/evaluation workloads are GPU- or dataset-dependent.

Read `references/troubleshooting.md` for cross-cutting install/import/backend failures. Read `references/repo-provenance.md` when deciding whether this skill is stale against a newer MMDetection checkout.

## Route by Task

| User task | Open this sub-skill | Why |
| --- | --- | --- |
| Choose a config, inspect `_base_`, apply `--cfg-options`, compare model zoo entries, or debug config loading | `sub-skills/configuration-model-zoo/SKILL.md` | Owns config inheritance, model-index/metafile navigation, model names, override validation, and config migration pointers. |
| Run image/folder/video-style inference, save prediction JSON or visualizations, use `DetInferencer`, `init_detector`, or `inference_detector` | `sub-skills/inference-visualization/SKILL.md` | Owns public inference APIs, output controls, device/palette choices, headless visualization, and deployment route selection. |
| Build training, resume, distributed, Slurm, testing, evaluation, or result-dump commands | `sub-skills/training-testing/SKILL.md` | Owns `tools/train.py`, `tools/test.py`, distributed launcher patterns, `--resume`, `--auto-scale-lr`, `work_dir`, and command validation. |
| Prepare datasets, convert image folders/annotations, configure COCO/VOC/Cityscapes/LVIS/OpenImages metrics, or debug transforms/evaluators | `sub-skills/datasets-evaluation/SKILL.md` | Owns dataset layouts, COCO-like schemas, custom dataset config, transforms, metrics, analysis tools, and tiny dataset helpers. |
| Add custom models, heads, losses, datasets, transforms, hooks, optimizer constructors, structures, or project plugins | `sub-skills/customization-extension/SKILL.md` | Owns registries, `custom_imports`, project templates, MMEngine integration, data structures, and migration/customization pitfalls. |

## Common Workflow Chains

### Config to Inference

1. Use `configuration-model-zoo` to select a compatible config and inspect inherited settings.
2. Use `inference-visualization` to choose `DetInferencer` or lower-level APIs.
3. Use root `references/troubleshooting.md` if imports fail before model construction.

### Custom Dataset Training

1. Use `datasets-evaluation` to validate annotation schema, class order, `metainfo`, and evaluator paths.
2. Use `configuration-model-zoo` to update config dataloaders, heads, and overrides.
3. Use `training-testing` to generate training/resume/test commands.
4. Use `customization-extension` only if a new dataset/transform class must be registered.

### New Component or Project Plugin

1. Use `customization-extension` for registry ownership, `custom_imports`, module layout, and smoke checks.
2. Use `configuration-model-zoo` to wire the new type into configs.
3. Use `training-testing` for safe launch command generation.

## Runtime Files

- `references/repo-provenance.md`: source commit, version, dirty state, and evidence baseline.
- `references/troubleshooting.md`: cross-cutting install/import/backend and dependency failures.
- `scripts/check_mmdet_environment.py`: safe import/version/API signature checker.

## Boundaries

This skill is self-contained guidance for future agents. It does not bundle MMDetection itself, pretrained checkpoints, datasets, videos, Docker images, or source-checkout-only tools. When a native MMDetection checkout is available, original demos/tests/tools can be used as optional verification candidates, but runtime instructions in this skill prefer bundled helpers or package APIs.

Files in this skill

  • SKILL.md4.8 KB
  • references/repo-provenance.md2.4 KB
  • references/repo-routing-metadata.json507 B
  • references/troubleshooting.md3.8 KB
  • scripts/check_mmdet_environment.py2.3 KB
  • sub-skills/configuration-model-zoo/SKILL.md2.2 KB
  • sub-skills/configuration-model-zoo/references/configuration.md6.6 KB
  • sub-skills/configuration-model-zoo/references/model-zoo.md6.3 KB
  • sub-skills/configuration-model-zoo/references/troubleshooting.md6.1 KB
  • sub-skills/configuration-model-zoo/scripts/inspect_config.py7.1 KB
  • sub-skills/customization-extension/SKILL.md2.8 KB
  • sub-skills/customization-extension/references/extension-workflows.md5.4 KB
  • sub-skills/customization-extension/references/registries-and-apis.md4.5 KB
  • sub-skills/customization-extension/references/troubleshooting.md4.8 KB
  • sub-skills/customization-extension/scripts/registry_probe.py4.4 KB
  • sub-skills/datasets-evaluation/SKILL.md2.6 KB
  • sub-skills/datasets-evaluation/references/data-formats.md7.1 KB
  • sub-skills/datasets-evaluation/references/evaluation-analysis.md6.3 KB
  • sub-skills/datasets-evaluation/references/troubleshooting.md5.6 KB
  • sub-skills/datasets-evaluation/scripts/images_to_coco.py5.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.