Commit 44e05308 authored by Maria Dimashova's avatar Maria Dimashova

fixed CvCascadeBoost::train

parent 1f3f4599
...@@ -1016,6 +1016,8 @@ bool CvCascadeBoost::train( const CvFeatureEvaluator* _featureEvaluator, ...@@ -1016,6 +1016,8 @@ bool CvCascadeBoost::train( const CvFeatureEvaluator* _featureEvaluator,
cvSeqPush( weak, &tree ); cvSeqPush( weak, &tree );
update_weights( tree ); update_weights( tree );
trim_weights(); trim_weights();
if( cvCountNonZero(subsample_mask) == 0 )
break;
} }
while( !isErrDesired() && (weak->total < params.weak_count) ); while( !isErrDesired() && (weak->total < params.weak_count) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment