fiftyone.core.map.batcher.slice_batch#
Abstract mapping backend
Classes:
|
Sample batch using slices |
- class fiftyone.core.map.batcher.slice_batch.SampleSliceBatch(start_idx: int, stop_idx: int)#
Bases:
SampleBatch
Sample batch using slices
Methods:
split
(sample_collection, num_workers[, ...])Create a list of sample batches
create_subset
(sample_collection)Create a sample collection from the batch
Attributes:
Get the total number of samples in the batch
- classmethod split(sample_collection: SampleCollection[T], num_workers: int, batch_size: int | None = None) List[SampleSliceBatch] #
Create a list of sample batches
- property total: int#
Get the total number of samples in the batch
- create_subset(sample_collection: SampleCollection[T]) SampleCollection[T] #
Create a sample collection from the batch