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
commit 136121f6ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)