Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVM_HOG.xml里只有一个支撑向量? #7

Open
Fridaycoder opened this issue Aug 24, 2019 · 2 comments
Open

SVM_HOG.xml里只有一个支撑向量? #7

Fridaycoder opened this issue Aug 24, 2019 · 2 comments

Comments

@Fridaycoder
Copy link

你好!谢谢您开源了这部分代码,但是我最近碰到了一个很困惑的问题,就是我训练出来的.xml文件中支撑向量的个数只有1个,不管如何调整参数和训练样本的个数,都是一个,看到您上传的SVM_HOG.xml文件里也只有一个支撑向量,所以想问下这个是正常的吗?因为直接拿这个文件去检测行人效果非常不好,所以觉得是这里有问题,希望可以得到您的回复,再次感谢!

@icsfy
Copy link
Owner

icsfy commented Aug 24, 2019

就是一个啊

@Chenhongchang
Copy link

对于线性SVM,svm.train函数中封装了void CvSVM::optimize_linear_svm()函数,使得多个支持向量整合为一个,这只是形式上的变化,详见svm.train()函数源码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants