Package ai.djl.basicdataset.cv
Class BananaDetection.Builder
- java.lang.Object
-
- ai.djl.training.dataset.RandomAccessDataset.BaseBuilder<T>
-
- ai.djl.basicdataset.cv.ImageDataset.BaseBuilder<BananaDetection.Builder>
-
- ai.djl.basicdataset.cv.BananaDetection.Builder
-
- Enclosing class:
- BananaDetection
public static final class BananaDetection.Builder extends ImageDataset.BaseBuilder<BananaDetection.Builder>
A builder for aBananaDetection.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BananaDetectionbuild()Builds theBananaDetection.BananaDetection.BuilderoptArtifactId(java.lang.String artifactId)Sets the optional artifactId.BananaDetection.BuilderoptGroupId(java.lang.String groupId)Sets optional groupId.BananaDetection.BuilderoptRepository(ai.djl.repository.Repository repository)Sets the optional repository.BananaDetection.BuilderoptUsage(ai.djl.training.dataset.Dataset.Usage usage)Sets the optional usage.BananaDetection.Builderself()-
Methods inherited from class ai.djl.basicdataset.cv.ImageDataset.BaseBuilder
optFlag
-
-
-
-
Method Detail
-
self
public BananaDetection.Builder self()
- Specified by:
selfin classai.djl.training.dataset.RandomAccessDataset.BaseBuilder<BananaDetection.Builder>
-
optUsage
public BananaDetection.Builder optUsage(ai.djl.training.dataset.Dataset.Usage usage)
Sets the optional usage.- Parameters:
usage- the usage- Returns:
- this builder
-
optRepository
public BananaDetection.Builder optRepository(ai.djl.repository.Repository repository)
Sets the optional repository.- Parameters:
repository- the repository- Returns:
- this builder
-
optGroupId
public BananaDetection.Builder optGroupId(java.lang.String groupId)
Sets optional groupId.- Parameters:
groupId- the groupId}- Returns:
- this builder
-
optArtifactId
public BananaDetection.Builder optArtifactId(java.lang.String artifactId)
Sets the optional artifactId.- Parameters:
artifactId- the artifactId- Returns:
- this builder
-
build
public BananaDetection build()
Builds theBananaDetection.- Returns:
- the
BananaDetection
-
-