The PriorBox plugin layer generates the prior boxes of designated sizes and aspect ratios across all dimensions (H x W).
More...
The PriorBox plugin layer generates the prior boxes of designated sizes and aspect ratios across all dimensions (H x W).
PriorBoxParameters defines a set of parameters for creating the PriorBox plugin layer. It contains:
- Parameters
-
minSize | Minimum box size in pixels. Can not be nullptr. |
maxSize | Maximum box size in pixels. Can be nullptr. |
aspectRatios | Aspect ratios of the boxes. Can be nullptr. |
numMinSize | Number of element in minSize. Must be larger than 0. |
numMaxSize | Number of elements in maxSize. Can be 0 or same as numMinSize. |
numAspectRatios | Number of elements in aspectRatios. Can be 0. |
flip | If true, will flip each aspect ratio. For example, if there is an aspect ratio "r", the aspect ratio "1.0/r" will be generated as well. |
clip | If true, will clip the prior so that it is within [0,1]. |
variance | Variance for adjusting the prior boxes. |
imgH | Image height. If 0, then the H dimension of the data tensor will be used. |
imgW | Image width. If 0, then the W dimension of the data tensor will be used. |
stepH | Step in H. If 0, then (float)imgH/h will be used where h is the H dimension of the 1st input tensor. |
stepW | Step in W. If 0, then (float)imgW/w will be used where w is the W dimension of the 1st input tensor. |
offset | Offset to the top left corner of each cell. |
◆ minSize
float* nvinfer1::plugin::PriorBoxParameters::minSize |
◆ maxSize
float * nvinfer1::plugin::PriorBoxParameters::maxSize |
◆ aspectRatios
float * nvinfer1::plugin::PriorBoxParameters::aspectRatios |
◆ numMinSize
int32_t nvinfer1::plugin::PriorBoxParameters::numMinSize |
◆ numMaxSize
int32_t nvinfer1::plugin::PriorBoxParameters::numMaxSize |
◆ numAspectRatios
int32_t nvinfer1::plugin::PriorBoxParameters::numAspectRatios |
◆ flip
bool nvinfer1::plugin::PriorBoxParameters::flip |
◆ clip
bool nvinfer1::plugin::PriorBoxParameters::clip |
◆ variance
float nvinfer1::plugin::PriorBoxParameters::variance[4] |
◆ imgH
int32_t nvinfer1::plugin::PriorBoxParameters::imgH |
◆ imgW
int32_t nvinfer1::plugin::PriorBoxParameters::imgW |
◆ stepH
float nvinfer1::plugin::PriorBoxParameters::stepH |
◆ stepW
float nvinfer1::plugin::PriorBoxParameters::stepW |
◆ offset
float nvinfer1::plugin::PriorBoxParameters::offset |
The documentation for this struct was generated from the following file: