T - the builder typepublic abstract static class AbstractImageFolder.ImageFolderBuilder<T extends AbstractImageFolder.ImageFolderBuilder>
extends ai.djl.training.dataset.RandomAccessDataset.BaseBuilder<T>
AbstractImageFolder.| Modifier | Constructor and Description |
|---|---|
protected |
ImageFolderBuilder() |
| Modifier and Type | Method and Description |
|---|---|
T |
optFlag(ai.djl.modality.cv.Image.Flag flag)
Sets the optional color mode flag.
|
T |
optMaxDepth(int maxDepth)
Sets the depth of the image folder.
|
T |
setRepository(ai.djl.repository.Repository repository)
Sets the repository containing the image folder.
|
T |
setRepositoryPath(java.nio.file.Path path)
Sets the repository file path containing the image folder.
|
T |
setRepositoryPath(java.lang.String path)
Sets the repository file path containing the image folder.
|
public T optFlag(ai.djl.modality.cv.Image.Flag flag)
flag - the color mode flagpublic T setRepository(ai.djl.repository.Repository repository)
repository - the repository containing the image folderpublic T setRepositoryPath(java.lang.String path)
path - the repository file path containing the image folderpublic T setRepositoryPath(java.nio.file.Path path)
path - the repository file path containing the image folderpublic T optMaxDepth(int maxDepth)
maxDepth - the maximum number of directory levels to visit