opencv_traincascade hanging with LBP tag

asked 2014-09-13 22:04:17 -0500

_chris gravatar image

When I run this command:

opencv_traincascade -data classifier -vec samples.vec -bg negatives.txt -featureType LBP -numStages 20 -minHitRate 0.999 -maxFalseAlarmRate 0.5 -numPos 100 -numNeg 750 -w 72 -h 24 -mode ALL -precalcValBufSize 1024 -precalcIdxBufSize 1024

The trainer is stuck at this stage indefinitely, using 99.x% of the CPU. This happens on Macs with both 4GB ram and 16GB ram.

===== TRAINING 0-stage ===== <begin pos="" count="" :="" consumed="" 100="" :="" 100="" neg="" count="" :="" acceptanceratio="" 750="" :="" 1<="" p="">

Without the -featureType LBP it runs fine seemingly and uses a reasonable amount of CPU (13%). My data is as follows: 11 initial positive images, 750 negatives -> create_samples returning 250 positive images. Am I doing something wrong?

edit retag flag offensive close merge delete


Can you tell us what version of OpenCV you are using?

StevenPuttemans gravatar imageStevenPuttemans ( 2014-09-14 06:51:56 -0500 )edit

2.4.9 running the compiled source found in the install directory

_chris gravatar image_chris ( 2014-09-15 04:09:46 -0500 )edit

Weird, i that is your output than someone changed the interface. My 2.4.8 install doesn't have the same outputs at each stage. However it could be due to MAC also ... let me think about it.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-09-15 13:51:24 -0500 )edit

trying LBP again using 99% of total CPU again and not doing a whole lot.

_chris gravatar image_chris ( 2014-09-15 17:27:23 -0500 )edit