RemotePathDataLoaderΒΆ
- class pyremotedata.dataloader.RemotePathDataLoader(dataset: RemotePathDataset, num_workers: int = 0, shuffle: bool = False, *args, **kwargs)[source]
Bases:
DataLoader
A custom
torch.utils.data.DataLoader
forpyremotedata.dataloader.RemotePathDataset
.This DataLoader is designed to work with
pyremotedata.dataloader.RemotePathDataset
and does not support all the arguments of the standardtorch.utils.data.DataLoader
.Unsupported arguments: - sampler - batch_sampler
- Parameters:
dataset (RemotePathDataset) β The
pyremotedata.dataloader.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.