Overview of stable_pretraining.data components
mainThe stable_pretraining.data module provides tools for dataset handling, transforms, sampling, and data loading specifically designed for self-supervised learning workflows. It is organized into several functional categories:
- Core Components: Fundamental building blocks like
DataModule,Collator, andDataset. - Real Data Wrappers: Tools to interface with existing data formats, including
FromTorchDataset,HFDataset(Hugging Face), andSubset. - Synthetic Data Generators: Classes and functions for creating artificial datasets (e.g.,
GMM,MinariStepsDataset,swiss_roll,perlin_noise). - Noise Models: Models for injecting noise into data, such as
CategoricalorExponentialMixtureNoiseModel. - Samplers: Specialized sampling strategies like
RepeatedRandomSamplerorSupervisedBatchSampler. - Utility Functions: Helpers for data manipulation like
fold_views,random_split, anddownloadfunctions.