Package ai.djl.modality.cv.translator
Class SingleShotDetectionTranslatorFactory
- java.lang.Object
-
- ai.djl.modality.cv.translator.ObjectDetectionTranslatorFactory
-
- ai.djl.modality.cv.translator.SingleShotDetectionTranslatorFactory
-
- All Implemented Interfaces:
TranslatorFactory
public class SingleShotDetectionTranslatorFactory extends ObjectDetectionTranslatorFactory
AnTranslatorFactory
that creates aSingleShotDetectionTranslator
instance.
-
-
Constructor Summary
Constructors Constructor Description SingleShotDetectionTranslatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Translator<?,?>
newInstance(java.lang.Class<?> input, java.lang.Class<?> output, Model model, java.util.Map<java.lang.String,?> arguments)
Returns a new instance of theTranslator
class.-
Methods inherited from class ai.djl.modality.cv.translator.ObjectDetectionTranslatorFactory
getSupportedTypes
-
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
-
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 theTranslator
class.- Parameters:
input
- the input classoutput
- the output classmodel
- theModel
that uses theTranslator
arguments
- the configurations for a newTranslator
instance- Returns:
- a new instance of the
Translator
class
-
-