Package ai.djl.modality.cv.translator
Class SemanticSegmentationTranslator.Builder
java.lang.Object
ai.djl.modality.cv.translator.BaseImageTranslator.BaseBuilder<T>
ai.djl.modality.cv.translator.BaseImageTranslator.ClassificationBuilder<SemanticSegmentationTranslator.Builder>
ai.djl.modality.cv.translator.SemanticSegmentationTranslator.Builder
- Enclosing class:
- SemanticSegmentationTranslator
public static class SemanticSegmentationTranslator.Builder
extends BaseImageTranslator.ClassificationBuilder<SemanticSegmentationTranslator.Builder>
The builder for Semantic Segmentation translator.
-
Field Summary
Fields inherited from class ai.djl.modality.cv.translator.BaseImageTranslator.ClassificationBuilder
synsetLoader
Fields inherited from class ai.djl.modality.cv.translator.BaseImageTranslator.BaseBuilder
batchifier, flag, height, pipeline, width
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the translator.protected void
configPostProcess
(Map<String, ?> arguments) protected SemanticSegmentationTranslator.Builder
self()
Methods inherited from class ai.djl.modality.cv.translator.BaseImageTranslator.ClassificationBuilder
optSynset, optSynsetArtifactName, optSynsetUrl, validate
Methods inherited from class ai.djl.modality.cv.translator.BaseImageTranslator.BaseBuilder
addTransform, configPreProcess, optBatchifier, optFlag, setPipeline
-
Method Details
-
self
- Specified by:
self
in classBaseImageTranslator.BaseBuilder<SemanticSegmentationTranslator.Builder>
-
configPostProcess
-
build
Builds the translator.- Returns:
- the new translator
-