AGENT SKILL

yolox

Use YOLOX for object-detection inference, training/data experiments, and checkpoint export/deployment workflows.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
yolox
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use YOLOX for object-detection inference, training/data experiments, and checkpoint export/deployment workflows.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

YOLOX

Use this repo skill when a task involves YOLOX, anchor-free YOLO object detection, YOLOX model selection, PyTorch inference, custom-data training/evaluation, experiment files, checkpoints, ONNX/TorchScript export, or optional deployment runtimes.

YOLOX is a PyTorch object-detection package. This skill is self-contained operating guidance for the versioned package surface; it does not require the original repository checkout.

Start here

  1. Read references/installation-and-environment.md when installing YOLOX, checking imports, choosing CPU/CUDA dependencies, or deciding which optional export/deployment packages are needed.
  2. Run scripts/check_yolox_install.py for a safe package/API/backend smoke check before expensive work.
  3. Route to a sub-skill:
  4. Read references/troubleshooting.md when the failure spans installation, imports, optional dependencies, CUDA, checkpoints, or routing between sub-skills.
  5. Read references/repo-provenance.md only when you need the source version, evidence paths, or staleness baseline for this generated skill.

Quick route map

User intent Route First action
Run YOLOX on images/video/webcam inference-and-api Choose --name for built-ins or --exp-file for custom models; validate install with the inference smoke helper.
Use the Python API in an app inference-and-api Follow the distilled get_exp → get_model → ValTransform → forward → postprocess → vis flow.
Train on COCO/VOC/custom data training-and-data Inspect the Exp, dataset root, annotations, class count, and image sizes before launching training.
Evaluate or resume a checkpoint training-and-data Match checkpoint, Exp, dataset/evaluator, device count, and resume-vs-fine-tune mode.
Export a checkpoint to ONNX/TorchScript export-and-deployment Dry-run the bundled export helper, then export with an explicit checkpoint path.
Use TensorRT/OpenVINO/ncnn/MegEngine/nebullvm export-and-deployment Treat these as optional stacks; probe SDK/toolchain/runtime availability before claiming support.
Install/import/debug YOLOX root references Run scripts/check_yolox_install.py, then use root troubleshooting and the nearest sub-skill.

Minimal install smoke

After installing YOLOX and required dependencies in the target environment:

python scripts/check_yolox_install.py --name yolox-nano --device auto --test-size 64

Use CPU for portable diagnostics:

python scripts/check_yolox_install.py --name yolox-nano --device cpu --test-size 64

The smoke check builds a model and can probe CUDA, but it does not download weights, read datasets, run training, or prove detection accuracy.

Operating boundaries

  • Use package/module commands such as python -m yolox.tools.demo, python -m yolox.tools.train, and python -m yolox.tools.eval when the installed package exposes them. Do not rely on source checkout script paths.
  • Full inference needs a checkpoint that matches the selected Exp; full training/evaluation needs datasets and usually CUDA resources.
  • ONNX and TorchScript export require a trained checkpoint. TensorRT/OpenVINO/ncnn/MegEngine/nebullvm require extra runtime/toolchain packages not covered by the base install.
  • Old weights that require --legacy in PyTorch demo/eval are not supported by current deployment demos; use a compatible old YOLOX version for those deployment paths or regenerate weights.

Avoid when

  • The task is general object-detection theory with no YOLOX usage, configuration, or package workflow.
  • The task targets a different YOLO implementation such as YOLOv5/YOLOv8/Ultralytics unless the user is explicitly migrating to or comparing with YOLOX.
  • The user asks for a long benchmark or full training run without providing data, checkpoints, compute budget, and permission.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351