1 /** 2 * Copyright 2020 Huawei Technologies Co., Ltd 3 * 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 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 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. 15 */ 16 17 #ifndef NNACL_DETECTION_POST_PROCESS_PARAMETER_H_ 18 #define NNACL_DETECTION_POST_PROCESS_PARAMETER_H_ 19 #include "nnacl/op_base.h" 20 21 typedef struct DetectionPostProcessParameter { 22 OpParameter op_parameter_; 23 float h_scale_; 24 float w_scale_; 25 float x_scale_; 26 float y_scale_; 27 float nms_iou_threshold_; 28 float nms_score_threshold_; 29 int64_t max_detections_; 30 int64_t detections_per_class_; 31 int64_t max_classes_per_detection_; 32 int64_t num_classes_; 33 bool use_regular_nms_; 34 bool out_quantized_; 35 36 float *anchors_; 37 38 void *decoded_boxes_; 39 void *nms_candidate_; 40 void *indexes_; 41 void *scores_; 42 void *all_class_indexes_; 43 void *all_class_scores_; 44 void *single_class_indexes_; 45 void *selected_; 46 } DetectionPostProcessParameter; 47 48 #endif // NNACL_DETECTION_POST_PROCESS_PARAMETER_H_ 49