public static class YoloV5Translator.Builder extends ObjectDetectionTranslator.ObjectDetectionBuilder<YoloV5Translator.Builder>
YoloV5Translator.imageHeight, imageWidth, thresholdsynsetLoaderbatchifier, flag, height, pipeline, width| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
YoloV5Translator |
build()
Builds the translator.
|
protected void |
configPostProcess(java.util.Map<java.lang.String,?> arguments) |
YoloV5Translator.Builder |
optNmsThreshold(float nmsThreshold)
Sets the NMS threshold.
|
YoloV5Translator.Builder |
optOutputType(YoloV5Translator.YoloOutputType outputType)
Sets the
YoloOutputType. |
protected YoloV5Translator.Builder |
self() |
getImageHeight, getImageWidth, optRescaleSize, optThresholdoptSynset, optSynsetArtifactName, optSynsetUrl, validateaddTransform, configPreProcess, optBatchifier, optFlag, setPipelinepublic YoloV5Translator.Builder optOutputType(YoloV5Translator.YoloOutputType outputType)
YoloOutputType.outputType - the YoloOutputTypepublic YoloV5Translator.Builder optNmsThreshold(float nmsThreshold)
nmsThreshold - the NMS thresholdprotected YoloV5Translator.Builder self()
self in class BaseImageTranslator.BaseBuilder<YoloV5Translator.Builder>protected void configPostProcess(java.util.Map<java.lang.String,?> arguments)
configPostProcess in class ObjectDetectionTranslator.ObjectDetectionBuilder<YoloV5Translator.Builder>public YoloV5Translator build()