技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
training-data【数据与研究】Use when preparing RobustVideoMatting datasets, DATA_PATHS, augmentations, losses, or four-stage training commands with GPU and data-layout caveats.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill for training setup, dataset schemas, path validation, augmentation behavior, and adapting the official four-stage RVM training recipe.
train.py, train_config.py, DATA_PATHS, VideoMatte240K,
ImageMatte, COCO panoptic, Supervisely Person Dataset, or YouTubeVIS.Route other tasks elsewhere:
Treat full RVM training as a large multi-GPU workflow, not a smoke test. The official training reference used data-center scale hardware and large external datasets.
Prepare dataset roots using the schemas in
references/data-layouts.md. Edit the
DATA_PATHS mapping in a local training checkout to point at those roots.
Validate obvious directory mistakes before launching training:
python scripts/rvm_validate_data_layout.py \
--videomatte-train /data/VideoMatte240K_JPEG_SD/train \
--background-images-train /data/Backgrounds/train \
--background-videos-train /data/BackgroundVideos/train \
--strict
Choose the stage command from
references/training-reference.md, then
adjust paths, GPU count, --num-workers, batch size, checkpoint locations,
and logging directories for the target machine.
Validate failures against references/troubleshooting.md before retrying a long run.
DATA_PATHS keys.mobilenetv3 for the documented official stage examples unless the user
asks to train the ResNet50 variant.train.py on CPU as a validation shortcut. The script discovers
torch.cuda.device_count() and uses multiprocessing, NCCL, DDP,
SyncBatchNorm, and AMP-oriented logic.--num-workers first when dataloaders exit unexpectedly on machines
with limited CPU memory.A good answer names the dataset roots and expected subdirectories, distinguishes matting and segmentation datasets, gives the stage command or config change, states GPU/data scale limitations, recommends a safe layout validation step, and avoids presenting full training as a quick smoke test.