我的 haartraining 程序目前正在我的计算机上运行。我正在使用 1700 个正样本和大约 1300 个负样本。我已经运行了以下命令行:
opencv_traincascade -data data -vec cars.vec -bg bg.txt -numStages 10 -nsplits 2 -minhitrate 0.999 -maxfalsealarm 0.5 -numPos 1600 -numNeg 1371 -w 48 -h 24
目前,报告如下:
===== TRAINING 0-stage =====
<BEGIN
POS count : consumed 1600 : 1600
NEG count : acceptanceRatio 1371 : 1
Precalculation time: 16
+----+---------+---------+
| N | HR | FA |
+----+---------+---------+
| 1| 1| 1|
+----+---------+---------+
| 2| 1| 1|
+----+---------+---------+
| 3| 1| 1|
+----+---------+---------+
| 4| 0.99875| 0.587163|
+----+---------+---------+
| 5| 0.99875| 0.587163|
+----+---------+---------+
| 6| 0.995625| 0.305616|
+----+---------+---------+
END>
Training until now has taken 0 days 0 hours 21 minutes 19 seconds.
===== TRAINING 1-stage =====
<BEGIN
POS count : consumed 1600 : 1607
NEG count : acceptanceRatio 1371 : 0.338853
Precalculation time: 18
+----+---------+---------+
| N | HR | FA |
+----+---------+---------+
| 1| 1| 1|
+----+---------+---------+
| 2| 1| 1|
+----+---------+---------+
| 3| 1| 1|
+----+---------+---------+
| 4| 1| 1|
+----+---------+---------+
| 5| 0.998125| 0.786287|
+----+---------+---------+
| 6| 0.9975| 0.673961|
+----+---------+---------+
| 7| 0.995625| 0.560175|
+----+---------+---------+
| 8| 0.9975| 0.531729|
+----+---------+---------+
| 9| 0.995625| 0.406273|
+----+---------+---------+
END>
Training until now has taken 0 days 0 hours -19 minutes -57 seconds.
===== TRAINING 2-stage =====
<BEGIN
POS count : consumed 1600 : 1614
NEG count : acceptanceRatio 1371 : 0.136649
Precalculation time: 17
+----+---------+---------+
| N | HR | FA |
+----+---------+---------+
| 1| 1| 1|
+----+---------+---------+
| 2| 1| 1|
+----+---------+---------+
| 3| 1| 1|
+----+---------+---------+
| 4| 0.998125| 0.856309|
+----+---------+---------+
| 5| 0.999375| 0.875274|
+----+---------+---------+
| 6| 0.996875| 0.633115|
+----+---------+---------+
| 7| 0.995625| 0.546317|
+----+---------+---------+
| 8| 0.995625| 0.501094|
+----+---------+---------+
| 9| 0.99625| 0.524435|
+----+---------+---------+
| 10| 0.995625| 0.404814|
+----+---------+---------+
END>
Training until now has taken 0 days 0 hours 14 minutes 52 seconds.
所以到了训练的第二阶段结束时,我仍然看到 0.4 的 False Alert 比率。在一些教程之后,我一直在选择一个 10 级级联。我在某处读到一个好的分类器应该在 10^-5 FA 左右,所以我猜想在第 2 阶段结束时为 0.404,在第 10 阶段结束时很难达到 10^-5 FA 率。 我对吗 ?我应该停止并改进我的阴性和阳性样本吗?
[编辑] 我想我对每个阶段的 FA 率和一般接受率感到困惑......
另一个问题出现在我的脑海中:舞台数量的影响是什么?性能与速度?