1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Merge pull request #22660 from zhouzq-thu:4.x

Fix objectness is not assigned in dnn::region_layer
This commit is contained in:
Alexander Smorkalov
2023-04-12 09:34:58 +03:00
committed by GitHub
+1
View File
@@ -317,6 +317,7 @@ public:
dstData[box_index + 1] = (y + y_tmp) / rows;
dstData[box_index + 2] = (srcData[box_index + 2]) * (srcData[box_index + 2]) * 4 * biasData[2 * a] / wNorm;
dstData[box_index + 3] = (srcData[box_index + 3]) * (srcData[box_index + 3]) * 4 * biasData[2 * a + 1] / hNorm;
dstData[box_index + 4] = srcData[p_index];
scale = srcData[p_index];
if (classfix == -1 && scale < thresh)