This document describes the input and output dataset formats used by the data-preprocessing scripts:
get_short-latents-giga-ctrl.pyget_short-latents-giga-ctrl-wan22-5b.py
Both scripts share the same data interface; they differ only in the pretrained model and default output directory.
<data_root>/
├── helios_giga_ctrl.jsonl # metadata
├── videos/ # RGB videos
└── control_videos/ # control videos (frame-aligned with RGB)
One JSON object per line. Each sample must contain at least:
| field | type | description |
|---|---|---|
uttid |
str | unique sample ID |
bucket_key |
str | bucket id used by the sampler |
bucket_num_frame |
int | number of frames |
bucket_height |
int | frame height |
bucket_width |
int | frame width |
Example:
{"uttid":"sample_000001","bucket_key":"480x1920x49","bucket_num_frame":49,"bucket_height":480,"bucket_width":1920}Note: the full schema is defined inside
BucketedFeatureDataset. The fields above are the minimum required by these scripts.
| key | shape | notes |
|---|---|---|
uttid |
list[str] | sample IDs |
video_metadata |
dict | lists of num_frames / height / width |
videos |
[B,T,C,H,W] |
RGB video; permuted to [B,C,T,H,W] for the VAE |
control_videos |
[B,T,C,H,W] |
control video; same handling |
prompts |
list[str] | text prompts |
first_frames_images |
[B,C,H,W] |
first frame, saved as PIL |
<output_root>/
├── {uttid}_{num_frame}_{height}_{width}.pt
├── sample_000001_49_480_1920.pt
├── sample_000002_49_480_1920.pt
└── ...
- one
.ptfile per sample, named{uttid}_{num_frame}_{height}_{width}.pt - a file is considered valid when its size ≥ 1024 bytes (used by append mode to skip)
A dictionary saved via torch.save:
| key | type | description |
|---|---|---|
vae_latent |
Tensor (CPU) | RGB video latent |
control_latent |
Tensor (CPU) | control video latent |
prompt_embed |
Tensor (CPU) | text embedding |
prompt_attention_mask |
Tensor (CPU) | attention mask |
first_frames_image |
PIL.Image | first frame |
prompt_raw |
str | original prompt |
control_type |
str | constant "external_control_video" |