Class YoloV5TranslatorFactory

    • Constructor Detail

      • YoloV5TranslatorFactory

        public YoloV5TranslatorFactory()
    • Method Detail

      • newInstance

        public Translator<?,​?> newInstance​(java.lang.Class<?> input,
                                                 java.lang.Class<?> output,
                                                 Model model,
                                                 java.util.Map<java.lang.String,​?> arguments)
                                          throws TranslateException
        Returns a new instance of the Translator class.
        Parameters:
        input - the input class
        output - the output class
        model - the Model that uses the Translator
        arguments - the configurations for a new Translator instance
        Returns:
        a new instance of the Translator class
        Throws:
        TranslateException - if failed to create Translator instance