public abstract static class BaseImageTranslator.ClassificationBuilder<T extends BaseImageTranslator.BaseBuilder> extends BaseImageTranslator.BaseBuilder<T>
ImageClassificationTranslator.| Modifier and Type | Field and Description |
|---|---|
protected BaseImageTranslator.SynsetLoader |
synsetLoader |
batchifier, flag, height, pipeline, width| Constructor and Description |
|---|
ClassificationBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configPostProcess(java.util.Map<java.lang.String,?> arguments) |
T |
optSynset(java.util.List<java.lang.String> synset)
Sets the potential classes for an image.
|
T |
optSynsetArtifactName(java.lang.String synsetArtifactName)
Sets the name of the synset file listing the potential classes for an image.
|
T |
optSynsetUrl(java.lang.String synsetUrl)
Sets the URL of the synset file.
|
protected void |
validate() |
addTransform, configPreProcess, optBatchifier, optFlag, self, setPipelineprotected BaseImageTranslator.SynsetLoader synsetLoader
public T optSynsetArtifactName(java.lang.String synsetArtifactName)
synsetArtifactName - a file listing the potential classes for an imagepublic T optSynsetUrl(java.lang.String synsetUrl)
synsetUrl - the URL of the synset filepublic T optSynset(java.util.List<java.lang.String> synset)
synset - the potential classes for an imageprotected void validate()
validate in class BaseImageTranslator.BaseBuilder<T extends BaseImageTranslator.BaseBuilder>protected void configPostProcess(java.util.Map<java.lang.String,?> arguments)
configPostProcess in class BaseImageTranslator.BaseBuilder<T extends BaseImageTranslator.BaseBuilder>