From 884c9b84e8f6dadd229d1a14a68355ea43b6e975 Mon Sep 17 00:00:00 2001 From: Steve Jeong Date: Fri, 10 Mar 2023 10:14:34 +0900 Subject: [PATCH] Add spaces between operators. Signed-off-by: Steve Jeong --- examples/RV1106_RV1103/rknn_yolov5_demo/src/postprocess.cc | 2 +- .../app/src/main/cpp/post_process.cc | 4 ++-- examples/rknn_yolov5_demo/src/postprocess.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/RV1106_RV1103/rknn_yolov5_demo/src/postprocess.cc b/examples/RV1106_RV1103/rknn_yolov5_demo/src/postprocess.cc index 8c95f8c..4dc0268 100644 --- a/examples/RV1106_RV1103/rknn_yolov5_demo/src/postprocess.cc +++ b/examples/RV1106_RV1103/rknn_yolov5_demo/src/postprocess.cc @@ -251,7 +251,7 @@ static int process(int8_t *input, int *anchor, int grid_h, int grid_w, int heigh boxes.push_back(box_y); boxes.push_back(box_w); boxes.push_back(box_h); - objProbs.push_back(sigmoid(deqnt_affine_to_f32(maxClassProbs, zp, scale))* sigmoid(deqnt_affine_to_f32(box_confidence, zp, scale))); + objProbs.push_back(sigmoid(deqnt_affine_to_f32(maxClassProbs, zp, scale)) * sigmoid(deqnt_affine_to_f32(box_confidence, zp, scale))); classId.push_back(maxClassId); validCount++; } diff --git a/examples/rknn_yolov5_android_apk_demo/app/src/main/cpp/post_process.cc b/examples/rknn_yolov5_android_apk_demo/app/src/main/cpp/post_process.cc index 51f4a82..05d0d04 100644 --- a/examples/rknn_yolov5_android_apk_demo/app/src/main/cpp/post_process.cc +++ b/examples/rknn_yolov5_android_apk_demo/app/src/main/cpp/post_process.cc @@ -187,7 +187,7 @@ static int process(int8_t *input, int *anchor, int grid_h, int grid_w, int heigh boxes.push_back(box_y); boxes.push_back(box_w); boxes.push_back(box_h); - objProbs.push_back(sigmoid(deqnt_affine_to_f32(maxClassProbs, zp, scale))* sigmoid(deqnt_affine_to_f32(box_confidence, zp, scale))); + objProbs.push_back(sigmoid(deqnt_affine_to_f32(maxClassProbs, zp, scale)) * sigmoid(deqnt_affine_to_f32(box_confidence, zp, scale))); classId.push_back(maxClassId); validCount++; } @@ -304,4 +304,4 @@ int post_process(int8_t *input0, int8_t *input1, int8_t *input2, int model_in_h, void deinitPostProcess() { return; -} \ No newline at end of file +} diff --git a/examples/rknn_yolov5_demo/src/postprocess.cc b/examples/rknn_yolov5_demo/src/postprocess.cc index b9a1f4b..6283461 100644 --- a/examples/rknn_yolov5_demo/src/postprocess.cc +++ b/examples/rknn_yolov5_demo/src/postprocess.cc @@ -222,7 +222,7 @@ static int process(int8_t* input, int* anchor, int grid_h, int grid_w, int heigh } } if (maxClassProbs>thres_i8){ - objProbs.push_back(sigmoid(deqnt_affine_to_f32(maxClassProbs, zp, scale))* sigmoid(deqnt_affine_to_f32(box_confidence, zp, scale))); + objProbs.push_back(sigmoid(deqnt_affine_to_f32(maxClassProbs, zp, scale)) * sigmoid(deqnt_affine_to_f32(box_confidence, zp, scale))); classId.push_back(maxClassId); validCount++; boxes.push_back(box_x);