Skip to content

Commit

Permalink
Merge pull request opencv#22660 from zhouzq-thu:4.x
Browse files Browse the repository at this point in the history
Fix objectness is not assigned in dnn::region_layer
  • Loading branch information
asmorkalov authored Apr 12, 2023
2 parents ebde9a5 + c8561ea commit 136121f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/dnn/src/layers/region_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ class RegionLayerImpl CV_FINAL : public RegionLayer
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)
Expand Down

0 comments on commit 136121f

Please sign in to comment.