public class BananaDetection
extends ai.djl.training.dataset.RandomAccessDataset
| Modifier and Type | Class and Description |
|---|---|
static class |
BananaDetection.Builder
A builder for a
BananaDetection. |
| Constructor and Description |
|---|
BananaDetection(BananaDetection.Builder builder)
Creates a new instance of
RandomAccessDataset with the given necessary
configurations. |
| Modifier and Type | Method and Description |
|---|---|
protected long |
availableSize() |
static BananaDetection.Builder |
builder()
Creates a new builder to build a
BananaDetection. |
protected ai.djl.training.dataset.Record |
get(ai.djl.ndarray.NDManager manager,
long index) |
void |
prepare(ai.djl.util.Progress progress) |
getData, getData, randomSplit, sizepublic BananaDetection(BananaDetection.Builder builder)
RandomAccessDataset with the given necessary
configurations.builder - a builder with the necessary configurationspublic static BananaDetection.Builder builder()
BananaDetection.protected ai.djl.training.dataset.Record get(ai.djl.ndarray.NDManager manager,
long index)
throws java.io.IOException
get in class ai.djl.training.dataset.RandomAccessDatasetjava.io.IOExceptionprotected long availableSize()
availableSize in class ai.djl.training.dataset.RandomAccessDatasetpublic void prepare(ai.djl.util.Progress progress)
throws java.io.IOException,
ai.djl.translate.TranslateException
java.io.IOExceptionai.djl.translate.TranslateException