Class SemanticSegmentationTranslator

    • Constructor Detail

      • SemanticSegmentationTranslator

        public SemanticSegmentationTranslator​(SemanticSegmentationTranslator.Builder builder)
        Creates the Semantic Segmentation translator from the given builder.
        Parameters:
        builder - the builder for the translator
    • Method Detail

      • processOutput

        public Image processOutput​(TranslatorContext ctx,
                                   NDList list)
        Processes the output NDList to the corresponding output object.
        Parameters:
        ctx - the toolkit used for post-processing
        list - the output NDList after inference
        Returns:
        the output object of expected type
      • builder

        public static SemanticSegmentationTranslator.Builder builder​(java.util.Map<java.lang.String,​?> arguments)
        Creates a builder to build a SemanticSegmentationTranslator with specified arguments.
        Parameters:
        arguments - arguments to specify builder options
        Returns:
        a new builder