20 #include "../C/detection_output.h" 21 #include "primitive.hpp" 35 corner = cldnn_code_type_corner,
36 center_size = cldnn_code_type_center_size,
37 corner_size = cldnn_code_type_corner_size
73 const float eta = 1.f,
129 void update_dto(
dto&
dto)
const override float eta
Used for adaptive NMS.
const int background_label_id
Background label id (-1 if there is no background class).
Represents data padding information.
detection_output(const primitive_id &id, const primitive_id &input_location, const primitive_id &input_confidence, const primitive_id &input_prior_box, const uint32_t num_classes, const uint32_t keep_top_k, const bool share_location=true, const int background_label_id=0, const float nms_threshold=0.3, const int top_k=-1, const float eta=1.f, const prior_box_code_type code_type=prior_box_code_type::corner, const bool variance_encoded_in_target=false, const float confidence_threshold=-std::numeric_limits< float >::max(), const padding &output_padding=padding())
Constructs pooling primitive.
int background_label_id
Background label id (-1 if there is no background class).
Generates a list of detections based on location and confidence predictions by doing non maximum supp...
uint32_t keep_top_k
Number of total bounding boxes to be kept per image after NMS step.
const bool share_location
If true, bounding box are shared among different classes.
uint32_t num_classes
Number of classes to be predicted.
const bool variance_encoded_in_target
If true, variance is encoded in target; otherwise we need to adjust the predicted offset accordingly...
int top_k
Maximum number of results to be kept in NMS.
detection_output(const dto *dto)
Constructs a copy from C API cldnn_detection_output_desc.
const float confidence_threshold
Only keep detections with confidences larger than this threshold.
const prior_box_code_type code_type
Type of coding method for bounding box.
const float nms_threshold
Threshold for NMS step.
uint32_t variance_encoded_in_target
If not 0, variance is encoded in target; otherwise we need to adjust the predicted offset accordingly...
const int top_k
Maximum number of results to be kept in NMS.
int32_t code_type
Type of coding method for bounding box. See cldnn_prior_box_code_type.
const float eta
Used for adaptive NMS.
prior_box_code_type
Select method for coding the prior-boxes in the detection output layer.
std::string primitive_id
Unique id of a primitive within a topology.
const uint32_t num_classes
Number of classes to be predicted.
base class for all primitives implementations.
padding output_padding
Requested output padding.
float confidence_threshold
Only keep detections with confidences larger than this threshold.
uint32_t share_location
If not 0, bounding box are shared among different classes.
float nms_threshold
Threshold for NMS step.
const int keep_top_k
Number of total bounding boxes to be kept per image after NMS step.
Generates a list of detections based on location and confidence predictions by doing non maximum supp...