OnFlyImageDataset
This dataset keeps all data on disk and generates batches on-fly according preprocessing pipeline.
Parameters
preprocessing
The preprocessing pipeline.
labels
Also it could keep labels, if it could be preprocessed separately and passed to this parameter. If it's missed, it will try to generate labels on-fly according org.jetbrains.kotlinx.dl.dataset.preprocessor.generator.LabelGenerator.
Types
Functions
batchIterator
Link copied to clipboard
Returns BatchIterator with fixed batchSize.
shuffle
Link copied to clipboard
Shuffles the dataset.
split
Link copied to clipboard
open override fun split(splitRatio: Double): Pair<OnFlyImageDataset, OnFlyImageDataset>
Content copied to clipboard
Splits datasets on two sub-datasets according splitRatio.