RemotePathDataLoaderΒΆ

class pyremotedata.dataloader.RemotePathDataLoader(dataset: RemotePathDataset, num_workers: int = 0, shuffle: bool = False, *args, **kwargs)[source]

Bases: DataLoader

A custom DataLoader for RemotePathDatasets.

This DataLoader is designed to work with RemotePathDatasets and does not support all the arguments of the standard DataLoader.

Unsupported arguments: - sampler - batch_sampler

Parameters:
  • dataset (RemotePathDataset) – The RemotePathDataset dataset to load from.

  • num_workers (int, optional) – The number of worker threads to use for loading. Default: 0. Must be greater than 0.

  • shuffle (bool, optional) – Whether to shuffle the dataset between epochs. Default: False.