Package ai.djl.modality.cv.translator
Class ObjectDetectionTranslatorFactory
java.lang.Object
ai.djl.translate.ExpansionTranslatorFactory<Image,O>
ai.djl.modality.cv.translator.BaseImageTranslatorFactory<DetectedObjects>
ai.djl.modality.cv.translator.ObjectDetectionTranslatorFactory
- All Implemented Interfaces:
TranslatorFactory
- Direct Known Subclasses:
InstanceSegmentationTranslatorFactory,SingleShotDetectionTranslatorFactory,YoloSegmentationTranslatorFactory,YoloTranslatorFactory,YoloV5TranslatorFactory,YoloV8TranslatorFactory
public abstract class ObjectDetectionTranslatorFactory
extends BaseImageTranslatorFactory<DetectedObjects>
An abstract
TranslatorFactory that creates a ObjectDetectionTranslator instance.-
Nested Class Summary
Nested classes/interfaces inherited from class ai.djl.translate.ExpansionTranslatorFactory
ExpansionTranslatorFactory.TranslatorExpansion<IbaseT,ObaseT> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the output type for the base translator.Methods inherited from class ai.djl.modality.cv.translator.BaseImageTranslatorFactory
getBaseInputType, getExpansions, getPreprocessorExpansionsMethods inherited from class ai.djl.translate.ExpansionTranslatorFactory
buildBaseTranslator, getPostprocessorExpansions, getSupportedTypes, newInstance, withTranslatorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.djl.translate.TranslatorFactory
isSupported
-
Constructor Details
-
ObjectDetectionTranslatorFactory
public ObjectDetectionTranslatorFactory()
-
-
Method Details
-
getBaseOutputType
Returns the output type for the base translator.- Specified by:
getBaseOutputTypein classExpansionTranslatorFactory<Image,DetectedObjects> - Returns:
- the output type for the base translator
-