public abstract class ObjectDetectionDataset extends ImageDataset
Datasets for Application.CV.OBJECT_DETECTION.ImageDataset.BaseBuilder<T extends ImageDataset.BaseBuilder<T>>flag| Constructor and Description |
|---|
ObjectDetectionDataset(ImageDataset.BaseBuilder<?> builder)
Creates a new instance of
ObjectDetectionDataset with the given necessary
configurations. |
| Modifier and Type | Method and Description |
|---|---|
ai.djl.training.dataset.Record |
get(ai.djl.ndarray.NDManager manager,
long index) |
abstract ai.djl.util.PairList<java.lang.Long,ai.djl.modality.cv.output.Rectangle> |
getObjects(long index)
Returns the list of objects in the image at the given index.
|
getImage, getImageChannels, getImageHeight, getImageWidth, getRecordImageavailableSize, getData, getData, getData, getData, randomSplit, size, subDataset, toArraypublic ObjectDetectionDataset(ImageDataset.BaseBuilder<?> builder)
ObjectDetectionDataset with the given necessary
configurations.builder - a builder with the necessary configurationspublic 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.IOExceptionpublic abstract ai.djl.util.PairList<java.lang.Long,ai.djl.modality.cv.output.Rectangle> getObjects(long index)
throws java.io.IOException
index - the index (if the dataset is a list of data items)java.io.IOException - if the data could not be loaded