Skip to content
Back to skills

Data Preparation

ASecurity

"Routes HunyuanVideo-I2V latent-extraction and metadata-validation

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
tools

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Data Preparation?

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

Security grade badge for Data Preparation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-data-preparation-37f25777/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-data-preparation-37f25777)

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: "data-preparation"
description: "Routes HunyuanVideo-I2V latent-extraction and metadata-validation
  tasks for LoRA training, including the raw-video schema, bucket/stride rules,
  and the processed JSON and .npy layout."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# Data Preparation

Use this sub-skill when the user wants to extract VAE latents from raw videos, validate the raw metadata list, or inspect the processed dataset layout that LoRA training consumes.

## What Belongs Here

- `hyvideo/hyvae_extract/` latent extraction.
- Raw `meta_file.list` + caption JSON validation.
- Processed `json_path/*.json` + `.npy` validation.
- Bucket size, aspect-ratio, and stride behavior.
- Optional text-encoder/tokenizer asset-prep notes when they affect the extraction setup.

## What Does Not Belong Here

- Training a LoRA. Use [`../lora-training/SKILL.md`](../lora-training/SKILL.md).
- Running image-to-video sampling. Use [`../inference/SKILL.md`](../inference/SKILL.md).

## Read First

- [`references/workflows.md`](references/workflows.md) for the extraction flow and the bucket-size guidance.
- [`references/data-formats.md`](references/data-formats.md) for the raw and processed schemas.
- [`references/troubleshooting.md`](references/troubleshooting.md) for decord, metadata, cache, and VAE issues.
- [`../../references/checkpoints.md`](../../references/checkpoints.md) because extraction needs the VAE checkpoint tree.

## Bundled Scripts

- [`scripts/check_dataset_layout.py`](scripts/check_dataset_layout.py) — validate raw or processed dataset structure. This helper lives in the generated skill; invoke it from the real checkout root with an explicit `$SKILL_ROOT` path.
- [`scripts/run_hyvae_extract.py`](scripts/run_hyvae_extract.py) — print or execute the canonical multi-GPU extraction command safely; pass `--repo-root` as the checkout containing `hyvideo/`.

## Typical Workflow

All executable commands below are run from the checkout root. The generated-skill helper path is `$SKILL_ROOT/sub-skills/data-preparation/scripts`, while the source config path is `$CHECKOUT_ROOT/hyvideo/hyvae_extract/vae.yaml`.

1. Validate the raw metadata with `check_dataset_layout.py --mode raw`.
2. Confirm the VAE checkpoint tree with `check_checkpoint_layout.py --mode extraction`.
3. Print the extraction launcher with `run_hyvae_extract.py --repo-root "$CHECKOUT_ROOT" --config "$CHECKOUT_ROOT/hyvideo/hyvae_extract/vae.yaml" --dry-run`.
4. Execute only after the metadata and checkpoint checks are clean.
5. Validate the processed latent JSON directory with `check_dataset_layout.py --mode processed` before handing it to training.

## Constraints to Remember

- The raw metadata list contains one JSON path per line.
- Each raw JSON needs a `video_path` and `raw_caption.long caption` field.
- The processed output must contain `.npy` latents and a sibling `json_path/` directory.
- `use_stride` increases stride to 2 for fps >= 50.
- `enable_multi_aspect_ratio` assumes a square `sample_size` seed and uses the selected bucket list.

Files in this skill

  • SKILL.md3 KB
  • references/data-formats.md2.1 KB
  • references/troubleshooting.md2.5 KB
  • references/workflows.md2.7 KB
  • scripts/check_dataset_layout.py4.9 KB
  • scripts/run_hyvae_extract.py2.6 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.