Package ai.djl.modality.cv.translator
Class Sam2Translator.Builder
java.lang.Object
ai.djl.modality.cv.translator.Sam2Translator.Builder
- Enclosing class:
- Sam2Translator
The builder for Sam2Translator.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the translator.optEncodeMethod
(String encodeMethod) Sets the module name for encode method.optEncoderPath
(String encoderPath) Sets the encoder model path.
-
Method Details
-
optEncoderPath
Sets the encoder model path.- Parameters:
encoderPath
- the encoder model path- Returns:
- the builder
-
optEncodeMethod
Sets the module name for encode method.- Parameters:
encodeMethod
- the module name for encode method- Returns:
- the builder
-
build
Builds the translator.- Returns:
- the new translator
-