cifar_converter
orchard.data_handler.fetchers.cifar_converter
¶
CIFAR-10/100 Dataset Converter.
Downloads CIFAR datasets via torchvision and converts them to NPZ format compatible with the Orchard ML pipeline. Creates stratified train/val/test splits from the original train/test partition.
ensure_cifar_npz(metadata)
¶
Ensures a CIFAR dataset is downloaded and converted to NPZ format.
Supports both CIFAR-10 and CIFAR-100 via metadata.name routing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
metadata
|
DatasetMetadata
|
DatasetMetadata with name ('cifar10' or 'cifar100') and path |
required |
Returns:
| Type | Description |
|---|---|
Path
|
Path to validated NPZ file |