mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-19 15:04:47 +08:00
[RKNPU2] RKYOLO Support FP32 return value (#898)
* RKNPU2 Backend兼容其他模型的量化 fd_tensor正式移除zp和scale的量化参数 * 更新FP32返回值的RKYOLO * 更新rkyolov5支持fp32格式 * 更新rkyolov5支持fp32格式 * 更新YOLOv5速度文档 Co-authored-by: DefTruth <31974251+DefTruth@users.noreply.github.com>
This commit is contained in:
@@ -85,12 +85,12 @@ class FASTDEPLOY_DECL RKYOLOPostprocessor {
|
||||
int width_ = 0;
|
||||
int anchor_per_branch_ = 0;
|
||||
|
||||
// Process Int8 Model
|
||||
int ProcessInt8(int8_t* input, int* anchor, int grid_h, int grid_w,
|
||||
int stride, std::vector<float>& boxes,
|
||||
std::vector<float>& boxScores, std::vector<int>& classId,
|
||||
float threshold, int32_t zp, float scale);
|
||||
|
||||
int ProcessFP16(float *input, int *anchor, int grid_h,
|
||||
int grid_w, int stride,
|
||||
std::vector<float> &boxes,
|
||||
std::vector<float> &boxScores,
|
||||
std::vector<int> &classId,
|
||||
float threshold);
|
||||
// Model
|
||||
int QuickSortIndiceInverse(std::vector<float>& input, int left, int right,
|
||||
std::vector<int>& indices);
|
||||
@@ -100,8 +100,8 @@ class FASTDEPLOY_DECL RKYOLOPostprocessor {
|
||||
std::vector<float> scale_;
|
||||
float nms_threshold_ = 0.45;
|
||||
float conf_threshold_ = 0.25;
|
||||
int prob_box_size = 85;
|
||||
int obj_class_num = 80;
|
||||
int prob_box_size_ = 85;
|
||||
int obj_class_num_ = 80;
|
||||
int obj_num_bbox_max_size = 200;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user