nemo_automodel.components.datasets.diffusion.meta_files_dataset
nemo_automodel.components.datasets.diffusion.meta_files_dataset
Module Contents
Classes
Functions
Data
API
Construction-time configuration for a pre-encoded diffusion dataloader.
Build the configured metadata dataset, sampler, and dataloader.
Bases: Dataset
PyTorch dataset for WAN2.1 .meta files.
Construction-time configuration for :class:MetaFilesDataset.
Device to load tensors to.
Maximum number of .meta files to use (None means no limit).
Path to the folder containing .meta files.
Build a :class:MetaFilesDataset from this :class:MetaFilesDatasetConfig.
Parameters:
Optional transform of text embeddings shaped [1, S, E], where S is text
sequence length and E is embedding width. It must return the same semantic axis order.
Optional transform of video latents shaped [1, C, T, Y, X], where C is
latent channels, T is latent frames, and Y/X are spatial height/width. It must
return the same semantic axis order.
Optional callable that filters samples by their metadata dict.
Returns: 'MetaFilesDataset'
Dataset loading tensors on the configured device.
Build a dataloader for pre-encoded diffusion metadata files.
Build a distributed sampler when torch.distributed is initialized.
Collate encoded video metadata samples into a training batch.
Create a default metadata dataloader for node-parallel loading.