Can not get new positive sample
来源:互联网 发布:淘宝ipad版怎么找相似 编辑:程序博客网 时间:2024/05/29 07:39
Can not get new positive sample
很多人会卡在这里,我也被卡了一个下午,很多人以为这里的-numPos 就是你所谓的正样本的总数,那你就大错特错了。这里有个公式,我们需要通过这个来求解这个-numPos,过程如下:
- vec-file number >= (numPos + (numStages-1) * (1 – minHitRate) * numPos) + S
vec-file number 就是我们的正样本总数5085,numstages=20,minHitRate=0.98,S 表示负样本总数也就是等于2177,这样我们可以就差numPos<=2628.9,所以我们这里的numPos应该去2628,这样正确地输入格式应该是这样的:
来源: http://blog.csdn.net/liaojiacai/article/details/49425193
http://bbs.csdn.net/topics/390388465
这是我在网上搜到的正解:
The problem is that your vec-file has exactly the same samples count that you passed in command line -numPos 979. Training application used all samples from the vec-file to train 0-stage and it can not get new positive samples for the next stage training because vec-file is over. The bug of traincascade is that it had assert() in such cases, but it has to throw an exception with error message for a user. It was fixed in r8913. -numPose is a samples count that is used to train each stage. Some already used samples can be filtered by each previous stage (ie recognized as background), but no more than (1 - minHitRate) * numPose on each stage. So vec-file has to contain >= (numPose + (numStages-1) * (1 - minHitRate) * numPose) + S, where S is a count of samples from vec-file that can be recognized as background right away. I hope it can help you to create vec-file of correct size and chose right numPos value.
It worked for me. I also had same problem, I was following the famous tutorial on HAAR training but wanted to try the newer training utility with -npos 7000 -nneg 2973
so i did following calcs:
vec-file has to contain >= (numPos + (numStages-1) * (1 - minHitRate) * numPos) + S
7000 >= (numPos + (20-1) * (1 - 0.999) * numPos) + 2973
(7000 - 2973)/(1 + 19*0.001) >= numPos
numPos <= 4027/1.019
numPos <= 3951 ~~ 3950
and used:
-npos 3950 -nneg 2973
It works.
The problem is that your vec-file has exactly the same samples count that you passed in command line -numPos 979. Training application used all samples from the vec-file to train 0-stage and it can not get new positive samples for the next stage training because vec-file is over. The bug of traincascade is that it had assert() in such cases, but it has to throw an exception with error message for a user. It was fixed in r8913. -numPose is a samples count that is used to train each stage. Some already used samples can be filtered by each previous stage (ie recognized as background), but no more than (1 - minHitRate) * numPose on each stage. So vec-file has to contain >= (numPose + (numStages-1) * (1 - minHitRate) * numPose) + S, where S is a count of samples from vec-file that can be recognized as background right away. I hope it can help you to create vec-file of correct size and chose right numPos value.
It worked for me. I also had same problem, I was following the famous tutorial on HAAR training but wanted to try the newer training utility with -npos 7000 -nneg 2973
so i did following calcs:
vec-file has to contain >= (numPos + (numStages-1) * (1 - minHitRate) * numPos) + S
7000 >= (numPos + (20-1) * (1 - 0.999) * numPos) + 2973
(7000 - 2973)/(1 + 19*0.001) >= numPos
numPos <= 4027/1.019
numPos <= 3951 ~~ 3950
and used:
-npos 3950 -nneg 2973
It works.
来源: http://bbs.csdn.net/topics/390388465
阅读全文
0 0
- Can not get new positive sample
- Opencv问题:Bad argument can not get new positive sample
- Traincascade Error: Bad argument (Can not get new positive sample. The most possible reason is insuf
- Traincascade Error: Bad argument (Can not get new positive sample. The most possible reason is insuf
- Traincascade Error: Bad argument (Can not get new positive sample. Themost possible reason is insuff
- new sample
- eclipse install new software can not work
- mysql can not get hostname for your address
- NTPd执行出现“ERROR!! Could not get a new address”
- What is new and important info you can get from JavaOne 2007
- Sample to get CPU information
- 08.09.19 (You can not insert a new class with the name of CAux )
- Bug 2974637: MANY ORA-600[KKSSCL-INF-INL-LOOP] OCCUR AND CAN NOT CREATE NEW CONNECTION
- new a AsyncTask cause 'Can't create handler inside thread that has not called Looper.prepare()'
- CentOS6.5 上 DHCP 不能启动 Can't chown new lease file: Operation not permitted
- Xcode View无法映射到类的解决方法(new referencing outlet can not work)
- java.sql.SQLSyntaxErrorException: ORA-00942: 表或视图不存在异常,或者can not get sequence nextval
- Can anybody get it?
- java基础之完数判断
- jquery实现多选下拉列表
- 简单工厂模式
- Cookie在登录中的小例子
- ubuntu16.04安装caffe python接口安装
- Can not get new positive sample
- Linux命令行参数处理——getopt系列函数
- selenium基本操作
- CodeForces
- 心情
- 2017 Multi-University Training Contest
- JAVA循环结构
- Android沉浸式状态栏实现
- Android初级开发(四)——补充1、Video View的应用