我的哈尔训练在第7阶段被挂起。有人可以帮助理解为什么以及如何摆脱这样的悬挂?
我只使用10个阶段,大约有500个图像。这是我的训练命令:
opencv_traincascade -data data_50x50 -vec samples_50x50.vec -bg neg_70x70.dat -numPos 495 -numNeg 570 -numStages 10 -w 20 -h 20 -featureType HAAR -mode ALL -precalcValBufSize 1024 -precalcIdxBufSize 1024 -minHitRate 0.999 -maxFalseAlarmRate 0.1 -maxWeakCount 1000
直到第六阶段它运行得很快(<5小时),然后在第七阶段,我在等待几天: 我可以看到FA正在减少到第6阶段。
+----+---------+---------+
END>
Training until now has taken 0 days 0 hours 27 minutes 11 seconds.
===== TRAINING 6-stage =====
<BEGIN
POS count : consumed 495 : 495
NEG count : acceptanceRatio 570 : 1.59311e-06
Precalculation time: 4
+----+---------+---------+
| N | HR | FA |
+----+---------+---------+
| 1| 1| 1|
+----+---------+---------+
| 2| 1| 1|
+----+---------+---------+
| 3| 1| 0.166667|
+----+---------+---------+
| 4| 1| 0|
+----+---------+---------+
END>
Training until now has taken 0 days 4 hours 2 minutes 32 seconds.
===== TRAINING 7-stage =====
<BEGIN
POS count : consumed 495 : 495
长期处于此阶段(> 2天)
由于