public static final class MultiBoxPrior.Builder
extends java.lang.Object
MultiBoxPrior object.| Modifier and Type | Method and Description |
|---|---|
MultiBoxPrior |
build()
Builds a
MultiBoxPrior block. |
MultiBoxPrior.Builder |
optClip(boolean clip)
Sets the boolean parameter that indicates whether to clip out-of-boundary boxes.
|
MultiBoxPrior.Builder |
optOffsets(java.util.List<java.lang.Float> offsets)
Sets the value of the center-box offsets across \(x\) and \(y\) dimensions.
|
MultiBoxPrior.Builder |
optSteps(java.util.List<java.lang.Float> steps)
Sets the step across \(x\) and \(y\) dimensions.
|
MultiBoxPrior.Builder |
setRatios(java.util.List<java.lang.Float> ratios)
Sets the aspect ratios of the anchor boxes to be generated around each pixel.
|
MultiBoxPrior.Builder |
setSizes(java.util.List<java.lang.Float> sizes)
Sets the sizes of the anchor boxes to be generated around each pixel.
|
public MultiBoxPrior.Builder setSizes(java.util.List<java.lang.Float> sizes)
sizes - the size of the anchor boxes generated around each pixelBuilderpublic MultiBoxPrior.Builder setRatios(java.util.List<java.lang.Float> ratios)
ratios - the aspect ratios of the anchor boxes to be generated around each pixelBuilderpublic MultiBoxPrior.Builder optSteps(java.util.List<java.lang.Float> steps)
steps - the step across \(x\) and \(y\) dimensionsBuilderpublic MultiBoxPrior.Builder optOffsets(java.util.List<java.lang.Float> offsets)
offsets - the value of the center-box offsets across \(x\) and \(y\) dimensionsBuilderpublic MultiBoxPrior.Builder optClip(boolean clip)
false by default.clip - whether to clip out-of-boundary boxesBuilderpublic MultiBoxPrior build()
MultiBoxPrior block.MultiBoxPrior block