Class BigGANTranslator

    • Constructor Detail

      • BigGANTranslator

        public BigGANTranslator​(float truncation)
        Constructs a translator for BigGAN.
        Parameters:
        truncation - value used to scale the normal seed for BigGAN
    • Method Detail

      • processOutput

        public Image[] processOutput​(TranslatorContext ctx,
                                     NDList list)
        Processes the output NDList to the corresponding output object.
        Specified by:
        processOutput in interface PostProcessor<Image[]>
        Parameters:
        ctx - the toolkit used for post-processing
        list - the output NDList after inference
        Returns:
        the output object of expected type
      • processInput

        public NDList processInput​(TranslatorContext ctx,
                                   int[] input)
                            throws java.lang.Exception
        Processes the input and converts it to NDList.
        Specified by:
        processInput in interface PreProcessor<int[]>
        Parameters:
        ctx - the toolkit for creating the input NDArray
        input - the input object
        Returns:
        the NDList after pre-processing
        Throws:
        java.lang.Exception - if an error occurs during processing input