技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
training-and-cli【数据与研究】Train, evaluate, configure, and validate RF-DETR datasets with the Python API or Lightning CLI.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to fine-tune, evaluate, configure, or debug RF-DETR training runs. It covers the high-level Python API, the Lightning CLI, dataset layout validation, TrainConfig variants, augmentation backends, loggers, resume behavior, and distributed training.
| If the user needs... | Open this |
|---|---|
| COCO, YOLO, segmentation, or keypoint dataset layout checks | references/data-formats.md and scripts/validate_dataset_layout.py |
model.train(...), model.evaluate(...), checkpoints, EMA, early stopping, auto batch, augmentation, loggers, or multi-GPU advice | references/training-workflows.md |
rfdetr fit/validate/test/predict, Lightning YAML configs, or config overrides | references/cli-and-configs.md and scripts/inspect_training_config.py |
| Training failures, missing extras, bad schemas, resume surprises, DDP, logger credentials, or resolution errors | references/troubleshooting.md |
Identify the model family: detection (RFDETRSmall / rfdetr-small), segmentation (RFDETRSegSmall / rfdetr-seg-small), or keypoint preview (RFDETRKeypointPreview / rfdetr-keypoint-preview).
Confirm the extras. Training needs pip install "rfdetr[train]"; the Lightning CLI also needs pip install "rfdetr[train,cli]". Add augment for Albumentations/Kornia and loggers for TensorBoard/W&B/MLflow.
Validate the dataset layout before long runs:
python scripts/validate_dataset_layout.py data/my_dataset --task auto
python scripts/validate_dataset_layout.py data/my_pose_dataset --task keypoint --infer-keypoint-schema
Inspect the installed config surface or a bundled Lightning YAML before editing it:
python scripts/inspect_training_config.py
python scripts/inspect_training_config.py --config references/configs/rfdetr_small.yaml
RFDETR.train(**kwargs) path for ordinary fine-tuning and RFDETR.evaluate(split="test"|"val", **kwargs) for one-shot COCO metrics.devices="auto" or an explicit count; the default Trainer device count is one.resume=".../last.ckpt" for full optimizer/scheduler continuity. Use lightweight .pth best checkpoints as weights or cold-continuation inputs.kpt_shape; keypoint training supports DDP but not Kornia GPU augmentation, FSDP, or DeepSpeed.../inference-and-models/SKILL.md.../export-and-deployment/SKILL.md.../repository-development/SKILL.md.