Skip to main content

dataloaders

Classes concerning data loading and dataloaders.

Classes​

BitfountDataLoader​

class BitfountDataLoader(    dataset: _BaseBitfountDataset, batch_size: int | None = None, shuffle: bool = False,):

A backend-agnostic data loader.

Arguments

  • dataset: The dataset for the dataloader.
  • batch_size: The batch size for the dataloader. Defaults to None.

Variables​

  • nominal_num_batches : int - Batch count ignoring frame-shape bucketing.

    Epoch arithmetic only - not the number of batches iteration will actually yield for image datasets, where batches are grouped by frame shape and can be smaller than batch_size.

    Returns: The number of elements when there is no batch size, otherwise len(dataset) divided by the batch size, rounded up.