Package ai.djl.modality.cv.translator
Class ImageClassificationTranslatorFactory
- java.lang.Object
-
- ai.djl.modality.cv.translator.ImageClassificationTranslatorFactory
-
- All Implemented Interfaces:
TranslatorFactory
public class ImageClassificationTranslatorFactory extends java.lang.Object implements TranslatorFactory
ATranslatorFactorythat creates anImageClassificationTranslator.
-
-
Constructor Summary
Constructors Constructor Description ImageClassificationTranslatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<ai.djl.util.Pair<java.lang.reflect.Type,java.lang.reflect.Type>>getSupportedTypes()Returns supported input/output classes.Translator<?,?>newInstance(java.lang.Class<?> input, java.lang.Class<?> output, Model model, java.util.Map<java.lang.String,?> arguments)Returns a new instance of theTranslatorclass.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ai.djl.translate.TranslatorFactory
isSupported
-
-
-
-
Method Detail
-
getSupportedTypes
public java.util.Set<ai.djl.util.Pair<java.lang.reflect.Type,java.lang.reflect.Type>> getSupportedTypes()
Returns supported input/output classes.- Specified by:
getSupportedTypesin interfaceTranslatorFactory- Returns:
- a set of supported input/output classes
-
newInstance
public Translator<?,?> newInstance(java.lang.Class<?> input, java.lang.Class<?> output, Model model, java.util.Map<java.lang.String,?> arguments)
Returns a new instance of theTranslatorclass.- Specified by:
newInstancein interfaceTranslatorFactory- Parameters:
input- the input classoutput- the output classmodel- theModelthat uses theTranslatorarguments- the configurations for a newTranslatorinstance- Returns:
- a new instance of the
Translatorclass
-
-