deepstream-yolo
Routes DeepStream-Yolo deployment, model conversion, multi-GIE, and INT8 workflows for supported YOLO-family models.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- deepstream-yolo
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes DeepStream-Yolo deployment, model conversion, multi-GIE, and INT8 workflows for supported YOLO-family models.
- disable-model-invocation
- true
02 资源文件 83
- 资产文件assets/configs/config_infer_primary_codetr.txt709 B
- 资产文件assets/configs/config_infer_primary_damoyolo.txt655 B
- 资产文件assets/configs/config_infer_primary_dfine.txt643 B
- 资产文件assets/configs/config_infer_primary_goldyolo.txt689 B
- 资产文件assets/configs/config_infer_primary_ppyoloe_plus.txt681 B
- 资产文件assets/configs/config_infer_primary_ppyoloe.txt707 B
- 资产文件assets/configs/config_infer_primary_rfdetr.txt648 B
- 资产文件assets/configs/config_infer_primary_rtdetr.txt663 B
- 资产文件assets/configs/config_infer_primary_rtmdet.txt765 B
- 资产文件assets/configs/config_infer_primary_yolo11.txt681 B
- 资产文件assets/configs/config_infer_primary_yolo26.txt658 B
- 资产文件assets/configs/config_infer_primary_yolomaster.txt692 B
- 资产文件assets/configs/config_infer_primary_yolonas_custom.txt669 B
- 资产文件assets/configs/config_infer_primary_yolonas.txt689 B
- 资产文件assets/configs/config_infer_primary_yolor.txt683 B
- 资产文件assets/configs/config_infer_primary_yoloV10.txt659 B
- 资产文件assets/configs/config_infer_primary_yoloV12.txt682 B
- 资产文件assets/configs/config_infer_primary_yoloV13.txt682 B
- 资产文件assets/configs/config_infer_primary_yoloV2.txt724 B
- 资产文件assets/configs/config_infer_primary_yoloV5.txt681 B
- 资产文件assets/configs/config_infer_primary_yoloV5u.txt682 B
- 资产文件assets/configs/config_infer_primary_yoloV6.txt681 B
- 资产文件assets/configs/config_infer_primary_yoloV7.txt680 B
- 资产文件assets/configs/config_infer_primary_yoloV8.txt681 B
- 资产文件assets/configs/config_infer_primary_yoloV9.txt682 B
- 资产文件assets/configs/config_infer_primary_yolox_legacy.txt711 B
- 资产文件assets/configs/config_infer_primary_yolox.txt661 B
- 资产文件assets/configs/config_infer_primary.txt744 B
- 资产文件assets/configs/deepstream_app_config.txt863 B
- 资产文件assets/configs/labels_rfdetr.txt692 B
- 资产文件assets/configs/labels.txt624 B
- 资产文件assets/images/multipleGIEs_tree.png24.4 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/calibrator.cpp4.1 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/calibrator.h2.2 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/activation_layer.cpp5.0 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/activation_layer.h362 B
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/batchnorm_layer.cpp2.5 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/batchnorm_layer.h489 B
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/channels_layer.cpp1.2 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/channels_layer.h397 B
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/convolutional_layer.cpp5.1 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/convolutional_layer.h549 B
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/deconvolutional_layer.cpp5.1 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/deconvolutional_layer.h555 B
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/implicit_layer.cpp1.2 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/implicit_layer.h443 B
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/pooling_layer.cpp1.9 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/pooling_layer.h359 B
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/reorg_layer.cpp4.3 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/reorg_layer.h379 B
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/route_layer.cpp2.6 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/route_layer.h388 B
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/sam_layer.cpp795 B
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/sam_layer.h413 B
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/shortcut_layer.cpp1.2 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/shortcut_layer.h504 B
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/slice_layer.cpp2.7 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/slice_layer.h380 B
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/upsample_layer.cpp1.0 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/layers/upsample_layer.h362 B
- 资产文件assets/nvdsinfer_custom_impl_Yolo/Makefile3.0 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/nvdsinfer_yolo_engine.cpp5.2 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/nvdsparsebbox_Yolo_cuda.cu4.2 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/nvdsparsebbox_Yolo.cpp4.3 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/utils.cpp4.1 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/utils.h1.8 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/yolo.cpp24.1 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/yolo.h4.4 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/yoloForward_nc.cu3.5 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/yoloForward_v2.cu4.3 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/yoloForward.cu3.6 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/yoloPlugins.cpp9.6 KB
- 资产文件assets/nvdsinfer_custom_impl_Yolo/yoloPlugins.h5.9 KB
- 参考文档references/installation.md1.9 KB
- 参考文档references/model-family-matrix.md4.7 KB
- 参考文档references/repo-provenance.md1.2 KB
- 参考文档references/repo-routing-metadata.json347 B
- 参考文档references/runtime-assets.md1.3 KB
- 参考文档references/troubleshooting.md2.9 KB
- 脚本scripts/build-nvdsinfer-plugin.sh3.0 KB
- 脚本scripts/check-deepstream-toolchain.sh1.0 KB
- 脚本scripts/make-calibration-list.sh765 B
- 脚本scripts/stage-runtime-tree.sh1.8 KB
03 SKILL.md 正文
DeepStream-Yolo
Use this skill for DeepStream YOLO deployment work: build the custom parser library, choose the right config template, convert weights to ONNX, wire multiple GIEs, and prepare INT8 calibration runs.
Start here
- Read
references/repo-provenance.mdif you need to know whether this skill still matches the current checkout. - Run
scripts/check-deepstream-toolchain.shbefore any build or runtime attempt. - If you want to inspect or edit the bundled runtime tree first, run
scripts/stage-runtime-tree.sh --output-dir ./deepstream-yolo-runtime. - Read
references/model-family-matrix.mdbefore changing a config template. - Use the sub-skill that matches the task family:
sub-skills/deployment/SKILL.mdfor single-model build/run work.sub-skills/model-conversion/SKILL.mdfor exporter selection and ONNX conversion.sub-skills/multi-gie/SKILL.mdfor multiple primary/secondary detectors.sub-skills/int8-benchmarking/SKILL.mdfor calibration and benchmark tuning.
What this skill covers
- DeepStream app configuration for one detector.
- Custom parser library builds in
nvdsinfer_custom_impl_Yolo. - Model-family-specific config templates and their special knobs.
- Ultralytics-family exporter scripts and labels generation.
- Multi-GIE folder scaffolding and plugin-version updates.
- INT8 calibration image lists, OpenCV build switch, and benchmark notes.
Shared references
references/installation.md— read when you need the host prerequisites,CUDA_VERmapping, or a quick reminder that DeepStream runtime is separate from the Python inspection environment.references/runtime-assets.md— read when you need to know where the bundled parser source, configs, and multi-GIE layout image live.scripts/stage-runtime-tree.sh— stage the bundled parser source and configs into a fresh runtime tree before running or editing them.scripts/build-nvdsinfer-plugin.sh— stage the bundled runtime tree and build the custom parser library on a DeepStream host.references/model-family-matrix.md— read when you need to match a model family to a config template or understand the important special knobs.references/troubleshooting.md— read when build, runtime, export, or calibration errors need a cross-cutting fix.references/repo-routing-metadata.json— used by the repo-skill router during import and discovery.references/repo-provenance.md— read when checking staleness or refreshing this skill.
Runtime expectations
- The generated skill is self-contained; do not depend on the original source checkout being preserved.
- DeepStream runtime commands need an NVIDIA DeepStream host or container; this generated skill can still document the workflow even when that SDK is absent on the current machine.
- The bundled
assets/tree contains the parser source, build files, config templates, and multi-GIE illustration needed for self-contained runtime staging. - The Ultralytics exporter path was inspected in a temporary Python environment with
torch,ultralytics,onnx,onnxslim, andonnxruntimeinstalled.
Route summary
deployment
Use this for:
- building
nvdsinfer_custom_impl_Yolo - choosing and editing a single-model
config_infer_primary*.txt - wiring
deepstream_app_config.txtfor one detector - troubleshooting DeepStream build and runtime issues
- understanding how custom models and labels fit into the pipeline
model-conversion
Use this for:
- converting Ultralytics-family
.ptcheckpoints to ONNX - deciding which exporter script to use
- generating
labels.txt - understanding which upstream repos are still reference-only in this skill
multi-gie
Use this for:
- duplicating the repo layout for multiple detectors
- changing
YOLOLAYER_PLUGIN_VERSION - wiring
secondary-gieentries andoperate-on-gie-id - moving engine files into the correct
gieN/folder
int8-benchmarking
Use this for:
- enabling INT8 calibration support with
OPENCV=1 - preparing
calibration.txtandINT8_CALIB_IMG_PATH - reading the benchmark table and tuning NMS values
- deciding when calibration is blocked by missing OpenCV dev headers
Quick reminders
- Set
CUDA_VERbefore building. - Use the config template that matches the model family, not just the checkpoint name.
- Keep
labels.txtsynchronized with the exporter output or the class list. - Do not treat CPU-only inspection as proof that DeepStream runtime works.
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).