load_dataset(train: bool = True, batch_size: int = 32, num_workers: int = 0, shuffle: bool = True, pin_memory: bool = True, object_type: Literal['VisionData', 'DataLoader'] = 'DataLoader') Union[DataLoader, VisionData][source]#

Get the COCO128 dataset and return a dataloader.

trainbool, default: True

if True train dataset, otherwise test dataset

batch_sizeint, default: 32

Batch size for the dataloader.

num_workersint, default: 0

Number of workers for the dataloader.

shufflebool, default: True

Whether to shuffle the dataset.

pin_memorybool, default: True

If True, the data loader will copy Tensors into CUDA pinned memory before returning them.

object_typeLiteral[‘Dataset’, ‘DataLoader’], default: ‘DataLoader’

type of the return value. If ‘Dataset’, deepchecks.vision.VisionDataset will be returned, otherwise torch.utils.data.DataLoader

Union[DataLoader, VisionDataset]

A DataLoader or VisionDataset instance representing COCO128 dataset