damo-yolo
Training, inference, and deployment workflows for DAMO-YOLO object detection.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- damo-yolo
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Training, inference, and deployment workflows for DAMO-YOLO object detection.
- disable-model-invocation
- true
02 资源文件 7
- 参考文档references/api-reference.md3.8 KB
- 参考文档references/model-overview.md2.3 KB
- 参考文档references/repo-provenance.md2.7 KB
- 参考文档references/repo-routing-metadata.json528 B
- 参考文档references/troubleshooting.md3.2 KB
- 参考文档references/workflows.md2.5 KB
- 脚本scripts/check_model_smoke.py3.1 KB
03 SKILL.md 正文
DAMO-YOLO
Use this repo skill for DAMO-YOLO object detection workflows built around the installed damo package. The main user-facing routes are training, demo inference, and deployment/export. This skill is self-contained: it bundles the reusable launchers, references, and smoke checks future agents need without reopening the original repository checkout.
Start here
- Install or verify the
damopackage in the active environment. For a local checkout, the usual command ispip install -e .because the package metadata readsrequirements.txtand installs thedamodistribution from this source tree. - Run
scripts/check_model_smoke.py --config <config.py> --workdir <dir>when you need a quick import/model/config sanity check before a longer workflow. - Read
references/workflows.mdfor the route map and bundled helper scripts. - Read
references/troubleshooting.mdif the task involves a missing dependency, config mismatch, class-count error, or relative-path failure. - Read
references/model-overview.mdandreferences/api-reference.mdwhen you need architecture or API details that are not obvious from the sub-skill router.
Route map
training
Use for training, fine-tuning, resume, evaluation, teacher-student distillation, custom COCO dataset setup, config editing, and distributed CUDA/NCCL launch commands.
Read:
sub-skills/training/SKILL.mdsub-skills/training/references/training-workflows.mdsub-skills/training/references/custom-coco-datasets.mdsub-skills/training/references/config-editing.mdsub-skills/training/references/troubleshooting.md
Bundled helpers:
sub-skills/training/scripts/launch_train.shsub-skills/training/scripts/launch_eval.shsub-skills/training/scripts/validate_coco_config.py
inference
Use for image, video, and camera demo inference with Torch, ONNX, or TensorRT engines, including engine selection and visualization behavior.
Read:
sub-skills/inference/SKILL.mdsub-skills/inference/references/engine-and-data-flow.mdsub-skills/inference/references/demo-workflows.mdsub-skills/inference/references/source-decisions.mdsub-skills/inference/references/troubleshooting.md
Bundled helper:
sub-skills/inference/scripts/damo_yolo_safe_demo.py
deployment
Use for ONNX export, TensorRT export/evaluation planning, partial INT8 quantization guidance, and deployment backend readiness checks.
Read:
sub-skills/deployment/SKILL.mdsub-skills/deployment/references/workflows.mdsub-skills/deployment/references/cli-reference.mdsub-skills/deployment/references/source-decisions.mdsub-skills/deployment/references/troubleshooting.md
Bundled helpers:
sub-skills/deployment/scripts/check_deploy_env.pysub-skills/deployment/scripts/export_onnx_safe.py
Routing cues
- If the prompt says train, fine-tune, resume, evaluate, distill, or prepare a COCO dataset, choose
training. - If the prompt says demo, image, video, camera, OpenCV visualization, Torch engine, ONNX Runtime, or TensorRT inference, choose
inference. - If the prompt says export, ONNX, TensorRT, engine build, partial quantization, ONNX Runtime NMS, or backend dependency check, choose
deployment. - If the prompt is only asking whether the environment, package install, config file, or model shape is sane before a long run, use
scripts/check_model_smoke.pyplus the relevant sub-skill.
Core constraints to remember
- COCO-style datasets are expected by the training pipeline; dataset names must contain
coco. cfg.dataset.class_namesandcfg.model.head.num_classesmust agree.- Relative TinyNAS structure reads need
--workdiror absolute config paths. Config.merge()only handles exact top-level keys reliably; prefer edited config files for nested changes.- Training and evaluation require CUDA/NCCL.
- Torch-based inference can fall back to CPU, but ONNX Runtime and TensorRT still depend on their own optional runtimes.
- TensorRT and partial INT8 quantization are optional backend paths; do not claim them unless the active environment actually provides the required packages and libraries.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).