model-conversion
Routes DeepStream-Yolo exporter selection, ONNX conversion, and labels generation for supported model families.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- model-conversion
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes DeepStream-Yolo exporter selection, ONNX conversion, and labels generation for supported model families.
- disable-model-invocation
- true
02 资源文件 13
- 参考文档references/model-family-matrix.md3.2 KB
- 参考文档references/troubleshooting.md1.4 KB
- 参考文档references/upstream-dependencies.md1.6 KB
- 参考文档references/workflows.md2.0 KB
- 脚本scripts/export_rtdetr_ultralytics.py4.0 KB
- 脚本scripts/export_yolo11.py4.2 KB
- 脚本scripts/export_yolo26.py4.8 KB
- 脚本scripts/export_yolomaster.py4.2 KB
- 脚本scripts/export_yoloV10.py4.8 KB
- 脚本scripts/export_yolov12.py4.2 KB
- 脚本scripts/export_yoloV13.py4.2 KB
- 脚本scripts/export_yoloV5u.py4.2 KB
- 脚本scripts/export_yoloV8.py4.2 KB
03 SKILL.md 正文
Model conversion
Use this sub-skill when the task is about turning a checkpoint into a DeepStream-ready ONNX file, picking the right exporter script, or generating the matching labels.txt.
Trigger phrases
- convert weights to ONNX
- export YOLOv8 / YOLO11 / YOLOv10 / YOLOv12 / YOLOv13 / YOLO26
- generate
labels.txt - which export script should I use
- dynamic batch ONNX export
- use the DeepStream-Yolo exporter helper
- upstream repo setup for export
Include here
- Ultralytics-family exporters that were verified in the inspection environment.
- Export flags such as
--size,--dynamic,--batch,--simplify, and--opset. - Label generation from exporter metadata.
- Guidance for matching the generated ONNX file back to the DeepStream config template.
- Reference-only notes for the other supported model families and their upstream stacks.
Exclude or route elsewhere
- Building or running
deepstream-app: usedeployment. - Multiple detector layouts: use
multi-gie. - INT8 calibration and benchmark tuning: use
int8-benchmarking. - Import/export or refresh of the skill library itself.
How to use this route
- Read
references/workflows.mdfor the export flow. - Read
references/model-family-matrix.mdto pick the exporter and understand which families are bundled vs reference-only. - Read
references/upstream-dependencies.mdwhen the user wants an external repo setup checklist. - Use the bundled exporter script from
scripts/that matches the chosen Ultralytics family. - Read
references/troubleshooting.mdif the export fails or labels are missing.
What a future agent should be able to do here
- Choose the correct exporter from a checkpoint name and model family.
- Explain the common exporter flags and how they affect the ONNX artifact.
- Distinguish bundled Ultralytics-family support from reference-only upstream stacks.
- Tell the user which file to copy into the DeepStream deployment folder after export.
Common failure signals
- Missing
onnx,onnxslim, oronnxruntime - The model file path is wrong
- The exporter runs but does not create
labels.txt - A legacy upstream repo is not installed
- The family matrix says the exporter is reference-only in this skill
Linked helpers
scripts/export_yoloV8.py— verified Ultralytics exporter copy.scripts/export_yolo11.py— verified Ultralytics exporter copy.scripts/export_yoloV10.py— verified Ultralytics exporter copy.scripts/export_yolov12.py— verified Ultralytics exporter copy.scripts/export_yoloV13.py— verified Ultralytics exporter copy.scripts/export_yolo26.py— verified Ultralytics exporter copy.scripts/export_yolomaster.py— verified Ultralytics exporter copy.scripts/export_yoloV5u.py— verified Ultralytics exporter copy.scripts/export_rtdetr_ultralytics.py— verified Ultralytics exporter copy.references/workflows.md— end-to-end export steps.references/model-family-matrix.md— exporter mapping and bundled/reference-only split.references/upstream-dependencies.md— external stack requirements by family.references/troubleshooting.md— export and label failure modes.
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).