T - the builder typepublic abstract static class AbstractImageFolder.ImageFolderBuilder<T extends AbstractImageFolder.ImageFolderBuilder<T>> extends ImageDataset.BaseBuilder<T>
AbstractImageFolder.| Modifier | Constructor and Description |
|---|---|
protected |
ImageFolderBuilder() |
| Modifier and Type | Method and Description |
|---|---|
T |
optImageHeight(int height)
Sets the height of the images.
|
T |
optImageSize(int size)
Sets the size of the images.
|
T |
optImageWidth(int width)
Sets the width of the images.
|
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.
|
optFlagpublic 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 visitpublic T optImageSize(int size)
size - the size (both width and height)public T optImageWidth(int width)
width - the width of the imagespublic T optImageHeight(int height)
height - the height of the images