34 int64_t background_label = -1;
35 int64_t keep_top_k = 100;
37 float nms_threshold = 0.5;
38 int64_t nms_top_k = 1000;
39 bool normalized =
true;
40 float score_threshold = 0.3;
43 struct PaddleMultiClassNMS {
44 int64_t background_label = -1;
45 int64_t keep_top_k = -1;
47 float nms_threshold = 0.7;
50 float score_threshold;
52 std::vector<int32_t> out_num_rois_data;
53 std::vector<int32_t> out_index_data;
54 std::vector<float> out_box_data;
55 void FastNMS(
const float* boxes,
const float* scores,
const int& num_boxes,
56 std::vector<int>* keep_indices);
57 int NMSForEachSample(
const float* boxes,
const float* scores,
int num_boxes,
59 std::map<
int, std::vector<int>>* keep_indices);
60 void Compute(
const float* boxes,
const float* scores,
61 const std::vector<int64_t>& boxes_dim,
62 const std::vector<int64_t>& scores_dim);
64 void SetNMSOption(
const struct NMSOption &nms_option){
65 background_label = nms_option.background_label;
66 keep_top_k = nms_option.keep_top_k;
67 nms_eta = nms_option.nms_eta;
68 nms_threshold = nms_option.nms_threshold;
69 nms_top_k = nms_option.nms_top_k;
70 normalized = nms_option.normalized;
71 score_threshold = nms_option.score_threshold;
Config for PaddleMultiClassNMS.
Definition: multiclass_nms.h:32
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16