Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opencv cascade train time

I use opencv_traincascade for training using following parameters

opencv_traincascade -data cascade_model -vec ..\create_template\pos_vec_file -bg ..\BG\bg.txt -featureType LBP -w 32 -h 32 -numPos 5000 -numNeg 10000

I tried to give more memory 1024 Mb (256 by default), but in this case i have memory allocation error. So the problem is that at the first training stages it was ok, but then on stage 12, 13 and so on it takes 8 hours per stage. During train process i have 10-15% processor activity. I have TBB binaries in opencv lib, but i don't really sure that my PC uses it. How can i tell to the PC, that i want to consolidate all PC resources on training process? Thanks. Processor and memory activity during training process

like image 936
Alex Hoppus Avatar asked Nov 03 '22 08:11

Alex Hoppus


1 Answers

You should install TBB and IPP. Then you can pass WITH_TBB=ON to CMake when configuring OpenCV. It helped me and I had 100% processor activity.

like image 52
EgorD Avatar answered Nov 17 '22 20:11

EgorD