Skip to content

Commit 182fe60

Browse files
authored
detection_model_retinaface_pt fix (#3059)
1 parent ff8756a commit 182fe60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/common/cpp/models/src/detection_model_retinaface_pt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ std::vector<ModelRetinaFacePT::Rect> ModelRetinaFacePT::getFilteredProposals(con
180180
auto pRawBox = reinterpret_cast<const Box*>(memPtr + i*sz[2]);
181181
auto& prior = priors[i];
182182
float cX = priors[i].cX + pRawBox->cX * variance[0] * prior.width;
183-
float cY = priors[i].cY + pRawBox->cY * variance[0] * prior.width;
183+
float cY = priors[i].cY + pRawBox->cY * variance[0] * prior.height;
184184
float width = prior.width * exp(pRawBox->width * variance[1]);
185185
float height = prior.height * exp(pRawBox->height * variance[1]);
186186
rects.push_back(Rect{

0 commit comments

Comments
 (0)