Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

traincascade's error (Required leaf false alarm rate achieved. Branch training terminated.)

Hello, everyone.

I wamt to a LBP face detector with traincascade. However, traincascade outputs a following message and stop training. "Required leaf false alarm rate achieved. Branch training terminated."

This is my first training parameters. opencv_traincascade -numPos 7500 -numNeg 3000 -featureType LBP -mode ALL -numStages 12 -w 48 -h 48 However, Training stops stage 9.

I tried to set various parameters. For example, -maxFalseAlarmRate 0.4 or 0.3, -w 24 -w 24, -minHitRate 0.7 and -numStage 8, but traincascade outputs same error message.

I prepare about 8,500 positive samples and 4,000 negative samples, so I think number of samples is enough. This is a example of positive samples. C:\fakepath\sampling_succeed.png This is a example of negative samples. C:\fakepath\division_img00010.jpg

I have no idea to finish training. Please advice me.

traincascade's error (Required leaf false alarm rate achieved. Branch training terminated.)

Hello, everyone.

I wamt to a LBP face detector with traincascade. However, traincascade outputs a following message and stop training. "Required leaf false alarm rate achieved. Branch training terminated."

This is my first training parameters. opencv_traincascade -numPos 7500 -numNeg 3000 -featureType LBP -mode ALL -numStages 12 -w 48 -h 48 However, Training stops stage 9.

I tried to set various parameters. For example, -maxFalseAlarmRate 0.4 or 0.3, -w 24 -w 24, -minHitRate 0.7 and , -numStage 8, but and -numpos 6000 ,but traincascade outputs same error message.

I prepare about 8,500 positive samples and 4,000 negative samples, so I think number of samples is enough. This is a example of positive samples. C:\fakepath\sampling_succeed.png This is a example of negative samples. C:\fakepath\division_img00010.jpg

I have no idea to finish training. Please advice me.

traincascade's error (Required leaf false alarm rate achieved. Branch training terminated.)

Hello, everyone.

I wamt to create a LBP face detector with traincascade. However, traincascade outputs a following message and stop training. "Required leaf false alarm rate achieved. Branch training terminated."

This is my first training parameters. opencv_traincascade -numPos 7500 -numNeg 3000 -featureType LBP -mode ALL -numStages 12 -w 48 -h 48 However, Training stops stage 9.

I tried to set various parameters. For example, -maxFalseAlarmRate 0.4 or 0.3, -w 24 -w 24, -minHitRate 0.7, -numStage 8 and -numpos 6000 ,but traincascade outputs same error message.

I prepare about 8,500 positive samples and 4,000 negative samples, so I think number of samples is enough. This is a example of positive samples. C:\fakepath\sampling_succeed.png This is a example of negative samples. C:\fakepath\division_img00010.jpg

I have no idea to finish training. Please advice me.

traincascade's error (Required leaf false alarm rate achieved. Branch training terminated.)

Hello, everyone.

I wamt to create a LBP face detector with traincascade. However, traincascade outputs a following message and stop training. "Required leaf false alarm rate achieved. Branch training terminated."

This is my first training parameters. opencv_traincascade -numPos 7500 -numNeg 3000 -featureType LBP -mode ALL -numStages 12 -w 48 -h 48 However, Training stops stage 9.

I tried to set various parameters. For example, -maxFalseAlarmRate 0.4 or 0.3, -w 24 -w 24, -minHitRate 0.7, -numStage 8 and -numpos 6000 ,but traincascade outputs same error message.

I prepare about 8,500 positive samples and 4,000 negative samples, so I think number of samples is enough. This is a example of positive samples. C:\fakepath\sampling_succeed.png This is a example of negative samples. C:\fakepath\division_img00010.jpg

I have no idea to finish training. Please advice me.

This is reported accuracy at stage 7,8 and stopped 9

===== TRAINING 7-stage =====
<BEGIN
POS count : consumed   7500 : 7659
NEG count : acceptanceRatio    3000 : 0.00111988
Precalculation time: 4.987
+----+---------+---------+
|  N |    HR   |    FA   |
+----+---------+---------+
|   1|        1|        1|
+----+---------+---------+
|   2|        1|        1|
+----+---------+---------+
|   3| 0.998133|    0.633|
+----+---------+---------+
|   4|   0.9968|     0.54|
+----+---------+---------+
|   5| 0.995867| 0.298333|
+----+---------+---------+
END>
Training until now has taken 0 days 1 hours 34 minutes 5 seconds.

===== TRAINING 8-stage =====
<BEGIN
POS count : consumed   7500 : 7690
NEG count : acceptanceRatio    3000 : 0.000370415
Precalculation time: 5.016
+----+---------+---------+
|  N |    HR   |    FA   |
+----+---------+---------+
|   1|        1|        1|
+----+---------+---------+
|   2|        1|        1|
+----+---------+---------+
|   3| 0.997467| 0.585667|
+----+---------+---------+
|   4|   0.9952| 0.478333|
+----+---------+---------+
END>
Training until now has taken 0 days 1 hours 53 minutes 53 seconds.

===== TRAINING 9-stage =====
<BEGIN
POS count : consumed   7500 : 7726
NEG count : acceptanceRatio    3000 : 0.000193578
Required leaf false alarm rate achieved. Branch training terminated.