Package ai.djl.basicdataset.cv
Class CocoDetection.Builder
java.lang.Object
ai.djl.training.dataset.RandomAccessDataset.BaseBuilder<T>
ai.djl.basicdataset.cv.ImageDataset.BaseBuilder<CocoDetection.Builder>
ai.djl.basicdataset.cv.CocoDetection.Builder
- Enclosing class:
- CocoDetection
public static final class CocoDetection.Builder
extends ImageDataset.BaseBuilder<CocoDetection.Builder>
A builder to construct a
CocoDetection
.-
Field Summary
Fields inherited from class ai.djl.training.dataset.RandomAccessDataset.BaseBuilder
dataBatchifier, device, labelBatchifier, limit, pipeline, prefetchNumber, sampler, targetPipeline
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the newCocoDetection
.optArtifactId
(String artifactId) Sets the optional artifactId.optGroupId
(String groupId) Sets optional groupId.optRepository
(ai.djl.repository.Repository repository) Sets the optional repository.optUsage
(ai.djl.training.dataset.Dataset.Usage usage) Sets the optional usage.self()
Methods inherited from class ai.djl.basicdataset.cv.ImageDataset.BaseBuilder
optFlag
Methods inherited from class ai.djl.training.dataset.RandomAccessDataset.BaseBuilder
addTargetTransform, addTransform, getSampler, optDataBatchifier, optDevice, optLabelBatchifier, optLimit, optPipeline, optPrefetchNumber, optTargetPipeline, setSampling, setSampling, setSampling
-
Method Details
-
self
- Specified by:
self
in classai.djl.training.dataset.RandomAccessDataset.BaseBuilder<CocoDetection.Builder>
-
optUsage
Sets the optional usage.- Parameters:
usage
- the new usage- Returns:
- this builder
-
optRepository
Sets the optional repository.- Parameters:
repository
- the repository- Returns:
- this builder
-
optGroupId
Sets optional groupId.- Parameters:
groupId
- the groupId}- Returns:
- this builder
-
optArtifactId
Sets the optional artifactId.- Parameters:
artifactId
- the artifactId- Returns:
- this builder
-
build
Builds the newCocoDetection
.- Returns:
- the new
CocoDetection
-