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.
1 parent 050916f commit f7175f5Copy full SHA for f7175f5
modules/dnn/src/layers/prior_box_layer.cpp
@@ -254,10 +254,11 @@ class PriorBoxLayerImpl : public PriorBoxLayer
254
CV_TRACE_FUNCTION();
255
CV_TRACE_ARG_VALUE(name, "name", name.c_str());
256
257
+ size_t real_numPriors = _additional_y_offset ? _numPriors / 2 : _numPriors;
258
if (_scales.empty())
- _scales.resize(_numPriors, 1.0f);
259
+ _scales.resize(real_numPriors, 1.0f);
260
else
- CV_Assert(_scales.size() == _numPriors);
261
+ CV_Assert(_scales.size() == real_numPriors);
262
263
int _layerWidth = inputs[0]->size[3];
264
int _layerHeight = inputs[0]->size[2];
0 commit comments