Traincascade Error: Bad argument (Can not get new positive sample. The most possible reason is insuf

来源:互联网 发布:python hadoop 教程 编辑:程序博客网 时间:2024/06/08 10:21

级联分类器训练时,到某个级数时报错:

Traincascade Error: Bad argument (Can not get new positive sample. Themost possible reason is insufficient count of samples in given vec-file.

解析:设置的numPos过大,由于训练时POS count 会从你设置的numPos增大,每一级都按一定的次序增大,后来可能会超过样本库中正样本的个数,就会报这个错误。

将命令行中的numPos改小一些,即可接着现有的层级训练

0 0
原创粉丝点击