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.
  • Method Details

    • self

      public CocoDetection.Builder self()
      Specified by:
      self in class ai.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(String groupId)
      Sets optional groupId.
      Parameters:
      groupId - the groupId}
      Returns:
      this builder
    • optArtifactId

      public CocoDetection.Builder optArtifactId(String artifactId)
      Sets the optional artifactId.
      Parameters:
      artifactId - the artifactId
      Returns:
      this builder
    • build

      public CocoDetection build()
      Builds the new CocoDetection.
      Returns:
      the new CocoDetection