std::bad_alloc in traincascade

asked 2015-06-25 07:19:44 -0600

Dr. Console gravatar image

Hey Guys, I tried to run the opencv_traincascade program with following command under Win7 64bit:

C:\Users\Dr. Console\Desktop\opencv-haar-classifier-training-master>opencv_traincascade -data classifier -vec samples.vec -bg negatives.txt -numStages 2 -minHit Rate 0.999 -maxFalseAlertRate 0.5 -numPos 50 -numNeg 20 -w 80 -h 40 -mode ALL -p recalcValBufSize 1536 -precalcIdxBufSize 1536

When running this command I had 2530 mb free ram and more than 50 GB free space on my harddrive and got this error:

terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc

This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

I also tried it in a VM with Linux Mint but got also a memalloc error where it says that it can't alloc 2GB of data, even if I had enough space on my virtual harddrive.

I hope someone knows this problem aswell as a solution for it.

NG Dr. Console

edit retag flag offensive close merge delete