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 aCocoDetection
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CocoDetection
build()
Builds the newCocoDetection
.CocoDetection.Builder
optArtifactId(java.lang.String artifactId)
Sets the optional artifactId.CocoDetection.Builder
optGroupId(java.lang.String groupId)
Sets optional groupId.CocoDetection.Builder
optRepository(ai.djl.repository.Repository repository)
Sets the optional repository.CocoDetection.Builder
optUsage(ai.djl.training.dataset.Dataset.Usage usage)
Sets the optional usage.CocoDetection.Builder
self()
-
Methods inherited from class ai.djl.basicdataset.cv.ImageDataset.BaseBuilder
optFlag
-
-
-
-
Method Detail
-
self
public CocoDetection.Builder self()
- Specified by:
self
in classai.djl.training.dataset.RandomAccessDataset.BaseBuilder<CocoDetection.Builder>
-
optUsage
public CocoDetection.Builder optUsage(ai.djl.training.dataset.Dataset.Usage usage)
Sets the optional usage.- Parameters:
usage
- the new usage- Returns:
- this builder
-
optRepository
public CocoDetection.Builder optRepository(ai.djl.repository.Repository repository)
Sets the optional repository.- Parameters:
repository
- the repository- Returns:
- this builder
-
optGroupId
public CocoDetection.Builder optGroupId(java.lang.String groupId)
Sets optional groupId.- Parameters:
groupId
- the groupId}- Returns:
- this builder
-
optArtifactId
public CocoDetection.Builder optArtifactId(java.lang.String artifactId)
Sets the optional artifactId.- Parameters:
artifactId
- the artifactId- Returns:
- this builder
-
build
public CocoDetection build()
Builds the newCocoDetection
.- Returns:
- the new
CocoDetection
-
-