writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
yoloxUse YOLOX for object-detection inference, training/data experiments, and checkpoint export/deployment workflows.
Independent GitHub snapshot · Automated classification · Original documentation governs
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.
Exp files, training/evaluation commands, caching, image-size settings, freezing, assignment visualization, and loggers.| 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. |
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.
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.Exp; full training/evaluation needs datasets and usually CUDA resources.--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.