2 // Copyright (c) 2016 Intel Corporation
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
17 ///////////////////////////////////////////////////////////////////////////////////////////////////
20 /// @addtogroup c_api C API
22 /// @addtogroup c_topology Network Topology
24 /// @addtogroup c_primitives Primitives
31 /// @brief Generates a set of default bounding boxes with different sizes and aspect ratios.
32 /// @details The prior-boxes are shared across all the images in a batch (since they have the same width and height).
33 /// First feature stores the mean of each prior coordinate.
34 /// Second feature stores the variance of each prior coordinate.
35 CLDNN_BEGIN_PRIMITIVE_DESC(prior_box)
36 /// @brief Image width and height.
37 cldnn_tensor img_size;
38 /// @brief Minimum box sizes in pixels.
39 cldnn_float_arr min_sizes;
40 /// @brief Maximum box sizes in pixels.
41 cldnn_float_arr max_sizes;
42 /// @brief Various of aspect ratios. Duplicate ratios will be ignored.
43 cldnn_float_arr aspect_ratios;
44 /// @brief If not 0, will flip each aspect ratio. For example, if there is aspect ratio "r", aspect ratio "1.0/r" we will generated as well.
46 /// @brief If not 0, will clip the prior so that it is within [0, 1].
48 /// @brief Variance for adjusting the prior boxes.
49 cldnn_float_arr variance;
50 /// @brief Step width.
52 /// @brief Step height.
54 /// @brief Offset to the top left corner of each cell.
56 /// @broef If false, only first min_size is scaled by aspect_ratios
57 uint32_t scale_all_sizes;
58 CLDNN_END_PRIMITIVE_DESC(prior_box)
60 CLDNN_DECLARE_PRIMITIVE_TYPE_ID(prior_box);