Skip to content
Back to skills

Training Data

ASecurity

"Use when preparing RobustVideoMatting datasets, DATA_PATHS,

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
toolspythongobashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill training-data --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Training Data?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Training Data
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-training-data-ee3c8055/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-training-data-ee3c8055)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: training-data
description: "Use when preparing RobustVideoMatting datasets, DATA_PATHS,
  augmentations, losses, or four-stage training commands with GPU and
  data-layout caveats."
disable-model-invocation: true
metadata:
  disco-role: operating
license: GPL 3.0
---

# RobustVideoMatting Training and Data

Use this sub-skill for training setup, dataset schemas, path validation,
augmentation behavior, and adapting the official four-stage RVM training recipe.

## Read this when

- The user asks how to train or fine-tune RVM.
- The task mentions `train.py`, `train_config.py`, `DATA_PATHS`, VideoMatte240K,
  ImageMatte, COCO panoptic, Supervisely Person Dataset, or YouTubeVIS.
- You need to validate dataset folders before editing a config.
- The user hits training dependency, dataloader, NCCL, CUDA, OOM, or path
  errors.

Route other tasks elsewhere:

- Model forward-call details: [model-api](../model-api/SKILL.md).
- Inference/conversion: [inference-workflows](../inference-workflows/SKILL.md).
- Evaluation metrics and synthetic test composites:
  [evaluation-tools](../evaluation-tools/SKILL.md).

## Training setup workflow

1. 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.
2. Prepare dataset roots using the schemas in
   [references/data-layouts.md](references/data-layouts.md). Edit the
   `DATA_PATHS` mapping in a local training checkout to point at those roots.
3. Validate obvious directory mistakes before launching training:

   ```bash
   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
   ```

4. Choose the stage command from
   [references/training-reference.md](references/training-reference.md), then
   adjust paths, GPU count, `--num-workers`, batch size, checkpoint locations,
   and logging directories for the target machine.
5. Validate failures against
   [references/troubleshooting.md](references/troubleshooting.md) before
   retrying a long run.

## Bundled references and script

- Read [references/data-layouts.md](references/data-layouts.md) for required
  directory shapes and `DATA_PATHS` keys.
- Read [references/training-reference.md](references/training-reference.md) for
  training flags, four official stages, distributed behavior, losses, and scale
  warnings.
- Read [references/dataset-api.md](references/dataset-api.md) for dataset and
  augmentation class behavior, sample outputs, and tensor shapes.
- Read [references/troubleshooting.md](references/troubleshooting.md) for
  missing data, relative paths, dependency pins, dataloader workers, CUDA/NCCL,
  and OOM recovery.
- Run [scripts/rvm_validate_data_layout.py](scripts/rvm_validate_data_layout.py)
  for safe filesystem validation. It does not import torch or start training.

## Key decisions

- Use `mobilenetv3` for the documented official stage examples unless the user
  asks to train the ResNet50 variant.
- Do not start `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.
- Reduce `--num-workers` first when dataloaders exit unexpectedly on machines
  with limited CPU memory.
- Keep exact legacy requirement pins as historical repo evidence. For modern
  inspection or helper execution, use compatible PyTorch/TorchVision versions,
  but do not claim that full legacy training was verified unless it was.

## Acceptance check for training/data answers

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.

Files in this skill

  • SKILL.md3.9 KB
  • references/data-layouts.md3.7 KB
  • references/dataset-api.md3.6 KB
  • references/training-reference.md4.6 KB
  • references/troubleshooting.md3.8 KB
  • scripts/rvm_validate_data_layout.py8.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.