Class ImageClassificationTranslator

    • Method Detail

      • prepare

        public void prepare​(TranslatorContext ctx)
                     throws java.io.IOException
        Prepares the translator with the manager and model to use.
        Parameters:
        ctx - the context for the Predictor.
        Throws:
        java.io.IOException
      • processOutput

        public Classifications 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 ImageClassificationTranslator.Builder builder​(java.util.Map<java.lang.String,​?> arguments)
        Creates a builder to build a ImageClassificationTranslator with specified arguments.
        Parameters:
        arguments - arguments to specify builder options
        Returns:
        a new builder