inference-demos
Plan and troubleshoot PINTO_model_zoo inference/demo scripts without blindly running hardware- or network-heavy examples.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- inference-demos
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Plan and troubleshoot PINTO_model_zoo inference/demo scripts without blindly running hardware- or network-heavy examples.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/inference-workflows.md3.6 KB
- 参考文档references/runtime-dependencies.md4.2 KB
- 参考文档references/troubleshooting.md4.3 KB
- 脚本scripts/classify_runtime_script.py22.5 KB
03 SKILL.md 正文
Inference Demos
Use this sub-skill when a user wants to understand, plan, or troubleshoot a selected PINTO_model_zoo demo script.
Route here for
- "run this TFLite/ONNX/OpenVINO demo"
- "what runtime deps do I need for this script?"
- "can I turn this webcam sample into a deterministic CI fixture?"
- "the model file, label file, or test image is missing"
- "the script imports OpenCV, onnxruntime, tensorflow, openvino, tfjs, or edge hardware helpers"
If the request is really about fetching artifacts, route to ../model-acquisition/.
If it is about conversion, quantization, or export, route to ../conversion-and-deployment/.
If the user has not chosen a model folder yet, start from the bundled catalog at ../../references/model-catalog.json.
Operating pattern
- Classify the script with
scripts/classify_runtime_script.py. - Read the script's
--help, default model path, and nearby asset names before planning execution. - Separate the inference backend from the input/output wrapper:
- inference backend: TensorFlow/TFLite, ONNX Runtime, OpenVINO, TFJS/browser, or a closely related wrapper path;
- wrapper/support: OpenCV camera/video, MediaPipe, Raspberry Pi/edge, or accelerator-specific flags.
- Preflight local assets and optional dependencies before any runtime claim.
- Replace live camera/video inputs with a fixed image, pinned clip, or saved frame set when possible.
- Stop and hand off instead of guessing when the selected backend, artifact, or hardware is unavailable.
What this skill returns
- backend family and the import/file clues behind it
- likely model file extensions and other asset types
- missing model, label, image, or video fixtures
- camera/video/display or edge-hardware risks
- a deterministic fixture plan when live input is unnecessary
- the next owner when this is really an acquisition or conversion task
Owned failure modes
- missing or mismatched model/test assets
- webcam or video demos that fail in CI or headless environments
- import errors for optional backend runtimes
- browser/TFJS samples that are not Python-runnable
- Raspberry Pi / EdgeTPU / Myriad / CUDA / TensorRT paths that need concrete hardware
- scripts that are actually conversion/export helpers in disguise
Bundled resources
references/inference-workflows.mdreferences/runtime-dependencies.mdreferences/troubleshooting.mdscripts/classify_runtime_script.py
This sub-skill plans inference/demo work. It does not claim native backend verification in Creator.
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).