cerebras.modelzoo.data.vision.classification.config.ProcessorConfig#
- class cerebras.modelzoo.data.vision.classification.config.ProcessorConfig(batch_size: int = <object object at 0x7f0436677b60>, shuffle: bool = True, shuffle_seed: int = 0, num_workers: int = 0, prefetch_factor: int = 10, persistent_workers: bool = True, data_dir: Union[str, List[str]] = <object object at 0x7f0436677b60>, num_classes: int = <object object at 0x7f0436677b60>, mixed_precision: bool = <object object at 0x7f0436677b60>, transforms: List[dict] = <factory>, image_size: int = 224, noaugment: bool = False, drop_last: bool = True, sampler: str = 'random', ra_sampler_num_repeat: int = 3, mixup_alpha: float = 0.1, cutmix_alpha: float = 0.1)[source]#
- data_dir: Union[str, List[str]] = <object object>#
- num_classes: int = <object object>#
- mixed_precision: bool = <object object>#
- transforms: List[dict]#
- image_size: int = 224#
- noaugment: bool = False#
- drop_last: bool = True#
- num_workers: int = 0#
The number of PyTorch processes used in the dataloader
- prefetch_factor: int = 10#
The number of batches to prefetch in the dataloader
- persistent_workers: bool = True#
Whether or not to keep workers persistent between epochs
- sampler: str = 'random'#
- ra_sampler_num_repeat: int = 3#
- mixup_alpha: float = 0.1#
- cutmix_alpha: float = 0.1#
- batch_size: int = <object object>#
Batch size to be used
- shuffle: bool = True#
Whether or not to shuffle the dataset
- shuffle_seed: int = 0#
Seed used for deterministic shuffling