public static final class MultiBoxTarget.Builder
extends java.lang.Object
MultiBoxTarget
object.Modifier and Type | Method and Description |
---|---|
MultiBoxTarget |
build()
Builds a
MultiBoxTarget block. |
MultiBoxTarget.Builder |
optIgnoreLabel(float ignoreLabel)
Sets the label for ignored anchors.
|
MultiBoxTarget.Builder |
optIouThreshold(float iouThreshold)
Sets the anchor-GroundTruth overlap threshold to be regarded as a positive match.
|
MultiBoxTarget.Builder |
optMinNegativeSamples(int minNegativeSamples)
Sets the minimum number of negative samples.
|
MultiBoxTarget.Builder |
optNegativeMinigRatio(float negativeMinigRatio)
Sets the max negative to positive samples ratio.
|
MultiBoxTarget.Builder |
optNegativeMiningThreshold(float negativeMiningThreshold)
Sets the threshold used for negative mining.
|
public MultiBoxTarget.Builder optMinNegativeSamples(int minNegativeSamples)
minNegativeSamples
- the minimum number of negative samplesBuilder
public MultiBoxTarget.Builder optIouThreshold(float iouThreshold)
iouThreshold
- the anchor-GroundTruth overlap threshold to be regarded as a positive
matchBuilder
public MultiBoxTarget.Builder optIgnoreLabel(float ignoreLabel)
ignoreLabel
- the label for ignored anchorsBuilder
public MultiBoxTarget.Builder optNegativeMiningThreshold(float negativeMiningThreshold)
negativeMiningThreshold
- the threshold used for negative miningBuilder
public MultiBoxTarget.Builder optNegativeMinigRatio(float negativeMinigRatio)
negativeMinigRatio
- the max negative to positive samples ratioBuilder
public MultiBoxTarget build()
MultiBoxTarget
block.MultiBoxTarget
block