public static class InstanceSegmentationTranslator.Builder extends ImageTranslator.BaseBuilder<InstanceSegmentationTranslator.Builder>
flag, pipeline
Modifier and Type | Method and Description |
---|---|
InstanceSegmentationTranslator |
build()
Builds the translator.
|
InstanceSegmentationTranslator.Builder |
optMaxEdge(int maxEdge)
Sets the maximum edge length of the rescaled image.
|
InstanceSegmentationTranslator.Builder |
optShortEdge(int shortEdge)
Sets the shorter edge length of the rescaled image.
|
InstanceSegmentationTranslator.Builder |
optThreshold(float threshold)
Sets the threshold for prediction accuracy.
|
protected InstanceSegmentationTranslator.Builder |
self() |
InstanceSegmentationTranslator.Builder |
setSynsetArtifactName(java.lang.String synsetArtifactName)
Sets the name for the synset.
|
optFlag, setPipeline
public InstanceSegmentationTranslator.Builder setSynsetArtifactName(java.lang.String synsetArtifactName)
synset is used to convert the prediction classes to their actual names.
synsetArtifactName
- the name of synsetpublic InstanceSegmentationTranslator.Builder optThreshold(float threshold)
Predictions below the threshold will be dropped.
threshold
- the threshold for prediction accuracypublic InstanceSegmentationTranslator.Builder optShortEdge(int shortEdge)
shortEdge
- the length of the short edgepublic InstanceSegmentationTranslator.Builder optMaxEdge(int maxEdge)
maxEdge
- the length of the longest edgeprotected InstanceSegmentationTranslator.Builder self()
self
in class ImageTranslator.BaseBuilder<InstanceSegmentationTranslator.Builder>
public InstanceSegmentationTranslator build()