Class SimplePoseTranslatorFactory

java.lang.Object
ai.djl.modality.cv.translator.SimplePoseTranslatorFactory
All Implemented Interfaces:
TranslatorFactory, Serializable

public class SimplePoseTranslatorFactory extends Object implements TranslatorFactory, Serializable
An TranslatorFactory that creates a SimplePoseTranslator instance.
See Also:
  • Constructor Details

    • SimplePoseTranslatorFactory

      public SimplePoseTranslatorFactory()
  • Method Details

    • getSupportedTypes

      public Set<ai.djl.util.Pair<Type,Type>> getSupportedTypes()
      Returns supported input/output classes.
      Specified by:
      getSupportedTypes in interface TranslatorFactory
      Returns:
      a set of supported input/output classes
    • newInstance

      public <I, O> Translator<I,O> newInstance(Class<I> input, Class<O> output, Model model, Map<String,?> arguments)
      Returns a new instance of the Translator class.
      Specified by:
      newInstance in interface TranslatorFactory
      Type Parameters:
      I - the input data type
      O - the output data type
      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