Package ai.djl.modality.cv.translator
Class YoloPoseTranslator.Builder
java.lang.Object
ai.djl.modality.cv.translator.BaseImageTranslator.BaseBuilder<YoloPoseTranslator.Builder>
ai.djl.modality.cv.translator.YoloPoseTranslator.Builder
- Enclosing class:
- YoloPoseTranslator
public static class YoloPoseTranslator.Builder
extends BaseImageTranslator.BaseBuilder<YoloPoseTranslator.Builder>
The builder for Pose Estimation translator.
-
Field Summary
Fields inherited from class ai.djl.modality.cv.translator.BaseImageTranslator.BaseBuilder
batchifier, flag, height, pipeline, width -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the translator.protected voidconfigPostProcess(Map<String, ?> arguments) optNmsThreshold(float nmsThreshold) Sets the NMS threshold.optThreshold(float threshold) Sets the threshold for prediction accuracy.protected YoloPoseTranslator.Builderself()Methods inherited from class ai.djl.modality.cv.translator.BaseImageTranslator.BaseBuilder
addTransform, configPreProcess, optBatchifier, optFlag, setPipeline, validate
-
Method Details
-
optThreshold
Sets the threshold for prediction accuracy.Predictions below the threshold will be dropped.
- Parameters:
threshold- the threshold for prediction accuracy- Returns:
- the builder
-
optNmsThreshold
Sets the NMS threshold.- Parameters:
nmsThreshold- the NMS threshold- Returns:
- this builder
-
self
- Specified by:
selfin classBaseImageTranslator.BaseBuilder<YoloPoseTranslator.Builder>
-
configPostProcess
- Overrides:
configPostProcessin classBaseImageTranslator.BaseBuilder<YoloPoseTranslator.Builder>
-
build
Builds the translator.- Returns:
- the new translator
-