trouble when use opencv_traincascade.exe
hi all
I am tring to train my owen XM with following key steps
1, create vec data with createsamples.exe with some main para posNum 5709, negNum 4381, -w 20, -h 20
this runs OK, then the vec data be created, which size is about 4M
2, when i use below cmd firstly, opencv_traincascade.exe -data D:\traincascade -vec D:\data\pos.vec -bg D:\bg.txt -numPos 5709-numNeg 4381 -numStages 22 -precalcValBufSize 200 -precalcIdxBufSize 1000 -featureType LBP -w 20 -h 20, this runs NOK, with assert pops out, opencv_traincascade.exe OpenCV Error: Assertion failed (elements_read == 1)
so then i changed para numPos to 5000, numNeg to 4350 then redo this, all works ok, but seems stuck all the time at Stage 8, this keeps 2 days so far
so, my question is what the relationship with numPos, numNeg and numStages ?
how can i train this XML with above para?
btw, is there a blank missing between 5709 and -numNeg ?
@ berak
nope, no blank missing actually in the cmd that I run if it is, i think errors will occur
just note, that those tools are very bad at reporting errors with any of those 10000 params.
and another thing, if you get stuck, and kill it, it will happily reuse all existing stages. so you can restart it with -numStages 8, and generate a cascade.xml from that ( to see the current state of affairs ) and then restart with -numStages 22 to proceed calculating the others
berak,
I cannot understand u absolutely, u mean when i want to train 22 stages, if the cmd stuck at stage 8, then i need to stop the train procedure, and restart with what ? just stage 8?
i have no idea about that, with that, i can get the XML that i really want?
sorry for the cunfusion. all i wanted to say is that you can restart it without having to do it ALL over again
@ berak,
acturally, that i restart it for many times, still not work out yet, so i post this question here, thank u