model-export
Routes Torchreid checkpoint export to ONNX, OpenVINO, and TFLite-style artifacts with explicit model-name, input-shape, and optional dependency checks.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- model-export
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes Torchreid checkpoint export to ONNX, OpenVINO, and TFLite-style artifacts with explicit model-name, input-shape, and optional dependency checks.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/export-workflows.md4.3 KB
- 参考文档references/optional-dependencies.md2.2 KB
- 参考文档references/troubleshooting.md3.1 KB
03 SKILL.md 正文
model-export
Use this sub-skill when a Torchreid checkpoint must be packaged for deployment rather than trained or queried.
Use this route for
- Exporting a Torchreid checkpoint to ONNX.
- Chaining ONNX into OpenVINO and TFLite-style artifacts.
- Choosing input height/width, opset, dynamic axes, or FP16 conversion settings.
- Resolving model-name selection before export.
- Checking optional export dependencies and known limitations.
Do not use this route for
- Training a checkpoint first. Use
training-evaluation. - Feature extraction, embeddings, or model-key discovery only. Use
feature-extraction. - Project-specific model families that are not accepted by core
build_model; those project workflows are excluded long-tail gaps in this generated skill.
Read first
Skill-owned script
scripts/export_torchreid_model.py— argparse-driven helper with--helpand--dry-run, explicit--model-name,--weights,--imgsz,--include,--dynamic,--opset, safe optional-dependency checks, and non-destructive defaults unless--forceis supplied.
Typical workflow
- Confirm the checkpoint already exists and belongs to a core Torchreid model family.
- Supply
--model-namewhen the filename does not clearly identify the architecture. - Export ONNX first, then request OpenVINO and/or TFLite-style outputs only when the corresponding tools are installed.
- Verify the generated artifact path and any dependency or shape warnings.
Limits to keep explicit
--helpand--dry-runmust stay safe and side-effect free.- ONNX export can run on CPU when
onnxis installed. - OpenVINO and TFLite-style conversion remain optional and unverified unless their extra packages are present.
- Existing outputs should not be overwritten unless
--forceis supplied. - Do not claim a successful deployment export unless the artifact was actually written.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.