writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
rf-detrUse and maintain RF-DETR for real-time object detection, instance segmentation, keypoint preview, training, export, deployment, and repository development.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when a task involves the rfdetr Python package or the RF-DETR repository: selecting model variants, running prediction, fine-tuning on COCO/YOLO/keypoint datasets, exporting artifacts, deploying to inference runtimes, or editing the RF-DETR source tree.
RF-DETR is a PyTorch/DINOv2-based real-time vision model family for object detection, instance segmentation, and keypoint preview. The public package name is rfdetr and the default concrete detection model for new examples is RFDETRSmall / "rfdetr-small".
For ordinary package use:
pip install rfdetr
python -c "from rfdetr import RFDETRSmall; print(RFDETRSmall.size)"
Add extras only for the workflow you need:
pip install "rfdetr[train,cli]" # training and Lightning CLI
pip install "rfdetr[augment]" # Albumentations / Kornia augmentation backends
pip install "rfdetr[onnx]" # ONNX export and ONNX Runtime inspection
pip install "rfdetr[tensorrt]" # TensorRT export on NVIDIA GPU hosts
pip install "rfdetr[tflite]" # experimental TFLite export
pip install "rfdetr[executorch]" # experimental ExecuTorch export
pip install "rfdetr[coreml]" # native CoreML export on supported macOS hosts
pip install "rfdetr[plus]" # Plus detection models; separate package/license
Run the bundled read-only environment check when import, optional dependency, CLI, or backend readiness is unclear:
python scripts/check_rfdetr_environment.py
python scripts/check_rfdetr_environment.py --extras train onnx augment --check-cuda
| User task | Open |
|---|---|
Choose an RF-DETR model class/alias, run image/video/stream prediction, load checkpoints, interpret supervision detections/keypoints, fix labels/devices/shape/downloads | sub-skills/inference-and-models/SKILL.md |
Fine-tune/evaluate detection, segmentation, or keypoint models; validate COCO/YOLO/keypoint datasets; use rfdetr Lightning CLI and YAML configs; debug resume, DDP, augmentation, loggers | sub-skills/training-and-cli/SKILL.md |
| Export to ONNX, TensorRT, TFLite, ExecuTorch, or CoreML; choose deployment artifacts; diagnose optional backend constraints and output naming | sub-skills/export-and-deployment/SKILL.md |
| Modify RF-DETR source, tests, docs, configs, package metadata, CI, or examples while following repository contribution rules | sub-skills/repository-development/SKILL.md |
RFDETRSmall / "rfdetr-small"; treat RFDETRBase / "rfdetr-base" as deprecated for new examples, docs, and tests.RFDETRSegNano, RFDETRSegSmall, RFDETRSegMedium, RFDETRSegLarge, RFDETRSegXLarge, RFDETRSeg2XLarge); do not use RFDETRSegPreview for new work.RFDETRKeypointPreview / "rfdetr-keypoint-preview".dynamic_batch=True for ExecuTorch/CoreML or QNN without soc.