public static class YoloV5Translator.Builder extends ObjectDetectionTranslator.ObjectDetectionBuilder<YoloV5Translator.Builder>
YoloV5Translator
.imageHeight, imageWidth, threshold
synsetLoader
batchifier, 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, optThreshold
optSynset, optSynsetArtifactName, optSynsetUrl, validate
addTransform, configPreProcess, optBatchifier, optFlag, setPipeline
public YoloV5Translator.Builder optOutputType(YoloV5Translator.YoloOutputType outputType)
YoloOutputType
.outputType
- the YoloOutputType
public 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()