Package ai.djl.modality.cv.translator
Class YoloV5TranslatorFactory
- java.lang.Object
-
- ai.djl.modality.cv.translator.ObjectDetectionTranslatorFactory
-
- ai.djl.modality.cv.translator.YoloV5TranslatorFactory
-
- All Implemented Interfaces:
TranslatorFactory
public class YoloV5TranslatorFactory extends ObjectDetectionTranslatorFactory
AnTranslatorFactory
that creates aYoloV5Translator
instance.
-
-
Constructor Summary
Constructors Constructor Description YoloV5TranslatorFactory()
-
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) throws TranslateException
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 - Throws:
TranslateException
- if failed to create Translator instance
-
-