yulequan / face-alignment-in-3000fps

a c++ implementation of face alignment in 3000fps
Other
377 stars 234 forks source link

change landmarks number to 5 #35

Open bj-wanghz opened 5 years ago

bj-wanghz commented 5 years ago

Hi, I changed the number of landmarks from 68 to 5 in InitializeGlobalParam function from LBF.cpp when training and I got the following error: `linear regression of one landmark cost 0.017138s terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.0.0-beta) /home/wanghongzhu/work/opencv-4.0.0-beta/modules/core/src/matrix.cpp:424: error: (-215:Assertion failed) 0 <= _rowRange.start && _rowRange.start <= _rowRange.end && _rowRange.end <= m.rows in function 'Mat'

Aborted (core dumped) ` How can I fix it?

lylezio commented 4 years ago

你好,我也有这个问题,我把landmark 改为29个之后出现了 OpenCV(3.4.6) Error: Assertion failed (0 <= _rowRange.start && _rowRange.start <= _rowRange.end && _rowRange.end <= m.rows) in cv::Mat::Mat, file c:\build\3_4_winpack-build-win64-vc15\opencv\modules\core\src\matrix.cpp, line 424 这个问题

lylezio commented 4 years ago

这个问题得到了解决吗?