Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regression box bug? #43

Open
LittlePeng opened this issue Oct 27, 2017 · 7 comments
Open

regression box bug? #43

LittlePeng opened this issue Oct 27, 2017 · 7 comments

Comments

@LittlePeng
Copy link

            bbox.height = bounding_box_[j].height + regression_box_temp_[4*j+2] * bounding_box_[j].height;
            bbox.width = bounding_box_[j].width + regression_box_temp_[4*j+3] * bounding_box_[j].width;

看mathlab 代码,regression box 对应的应该是 x1,y1; x2,y2 两个坐标,而不是height,width 造成最终结果的bbox位置会有点歪,改正后效果更好些

@GarrickLin
Copy link

就觉得怎么抖得那么厉害,改完以后好很多

@wuzhiyang2016
Copy link

//regression box : y x height width
regression_box.push_back(cv::Rect(regression_box_temp_[i + count] * width, regression_box_temp_[i] * width, regression_box_temp_[i + count3] * width, regression_box_temp_[i + count2] * width));

hi, could you tell me , in MTCNN.cpp, why save as [y,x,h,w] ? instead of [x,y,w,h]

@wuzhiyang2016
Copy link

At the train time, the label regress as [x,y,w,h],,,at the test time ,,,it must the order [x,y ,w,h],,,but in the code, why save as [y,x,h,w] ??? it is so confused!!!

@wuzhiyang2016
Copy link

@GarrickLin
Copy link

Data layout in caffe follows NCWH, but opencv is CHW. Before forwarding there is a transpose, so what you get then is all transposed.

@wuzhiyang2016
Copy link

Very thanks,i get it! @GarrickLin

@edric1261234
Copy link

@GarrickLin 能把改过的代码贴出来吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants