提交 44e05308 编写于 作者: M Maria Dimashova

fixed CvCascadeBoost::train

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册