cerebras.modelzoo.data.common.h5_map_dataset.dataset.MultimodalSimpleHDF5Dataset#
- class cerebras.modelzoo.data.common.h5_map_dataset.dataset.MultimodalSimpleHDF5Dataset(*args, **kwargs)[source]#
Bases:
cerebras.modelzoo.data.common.h5_map_dataset.dataset.MultiModalHDF5DatasetDataset class to handle image preprocessing in multimodal datasets.
This class is largely the same as the parent class MultimodalHDF5Dataset except with added support for multiple images and intermingling of text and images.
- Parameters
config (cerebras.modelzoo.data.common.h5_map_dataset.dataset.MultimodalSimpleHDF5DatasetConfig) – The config used to configure the dataset.
Methods
generate_sampleload_state_dictmappreprocess_imgstate_dictAttributes
by_sample