MTCNN icon indicating copy to clipboard operation
MTCNN copied to clipboard

regression box bug?

Open LittlePeng opened this issue 7 years ago • 7 comments

            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位置会有点歪,改正后效果更好些

LittlePeng avatar Oct 27 '17 07:10 LittlePeng

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

GarrickLin avatar Feb 02 '18 04:02 GarrickLin

//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 avatar Feb 11 '18 02:02 wuzhiyang2016

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 avatar Feb 11 '18 02:02 wuzhiyang2016

@foreverYoungGitHub @LittlePeng @GarrickLin

wuzhiyang2016 avatar Feb 11 '18 02:02 wuzhiyang2016

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

GarrickLin avatar Feb 11 '18 06:02 GarrickLin

Very thanks,i get it! @GarrickLin

wuzhiyang2016 avatar Feb 11 '18 08:02 wuzhiyang2016

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

edric1261234 avatar Apr 28 '18 03:04 edric1261234