public static class InstanceSegmentationTranslator.Builder extends BaseImageTranslator.ClassificationBuilder<InstanceSegmentationTranslator.Builder>
synsetLoader
batchifier, flag, height, pipeline, width
Modifier and Type | Method and Description |
---|---|
InstanceSegmentationTranslator |
build()
Builds the translator.
|
protected void |
configPostProcess(java.util.Map<java.lang.String,java.lang.Object> arguments) |
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() |
optSynset, optSynsetArtifactName, optSynsetUrl, validate
addTransform, configPreProcess, optBatchifier, optFlag, setPipeline
public 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 BaseImageTranslator.BaseBuilder<InstanceSegmentationTranslator.Builder>
protected void configPostProcess(java.util.Map<java.lang.String,java.lang.Object> arguments)
public InstanceSegmentationTranslator build()