We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fba70f7 + c909693 commit cceec84Copy full SHA for cceec84
modules/dnn/src/layers/proposal_layer.cpp
@@ -54,11 +54,11 @@ class ProposalLayerImpl CV_FINAL : public ProposalLayer
54
for (int i = 0; i < ratios.size(); ++i)
55
{
56
float ratio = ratios.get<float>(i);
57
+ float width = std::floor(baseSize / sqrt(ratio) + 0.5f);
58
+ float height = std::floor(width * ratio + 0.5f);
59
for (int j = 0; j < scales.size(); ++j)
60
61
float scale = scales.get<float>(j);
- float width = std::floor(baseSize / sqrt(ratio) + 0.5f);
- float height = std::floor(width * ratio + 0.5f);
62
widths.push_back(scale * width);
63
heights.push_back(scale * height);
64
}
0 commit comments