Ask Your Question
0

opencv_traincascade training time/stuck

asked 2013-10-25 07:25:44 -0600

Immael gravatar image

Hello Is it possible that traincascade is taking forever to load negative images or is it something wrong with my smaples.

for example my training params (i have a set of 2500 positive and 16000 negative samples)

PARAMETERS: cascadeDirName: haarcascade vecFileName: positives.vec bgFileName: negatives2.txt numPos: 718 numNeg: 3019 numStages: 20 precalcValBufSize[Mb] : 1024 precalcIdxBufSize[Mb] : 1024 stageType: BOOST featureType: HAAR sampleWidth: 19 sampleHeight: 19 boostType: GAB minHitRate: 0.99 maxFalseAlarmRate: 0.3 weightTrimRate: 0.95 maxDepth: 1 maxWeakCount: 100 mode: ALL

Stages 0-10 are loaded

===== TRAINING 11-stage ===== <begin pos="" count="" :="" consumed="" 718="" :="" 791<="" p="">

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-10-25 20:09:45 -0600

mccunnj gravatar image

updated 2013-10-25 20:10:46 -0600

When I tried to train with a buffer that large train took 8GB+ ram. When its needs exceeded my available ram the whole process slowed way down. I assume it started using my hdd as memory overflow. Try 512mb. Also monitor your CPU and ram usage. What is it at when it seems to hang.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-10-25 07:25:44 -0600

Seen: 873 times

Last updated: Oct 25 '13