Giter VIP home page Giter VIP logo

svm-classification-localization's Introduction

SVM-classification-detection (Python2.7)

HoG, PCA, PSO, Hard Negative Mining, Sliding Window, NMS

image

Best way to do detection is:

HoG(features) -> PCA(less features) + PSO(best C&gamma) -> origin SVM -> HNM(more features) -> better SVM -> SW -> NMS(bbox regression)

Sorry for my laziness.

I think I should clarify the steps for the program.

  1. Extract HoG features (script 1)

  2. Train an initial model for pso (script 2)

  3. Do pca and pso for better parameters C and gamma (script 6)

  4. Use no-pca features and the best parameters to train the second model (script 2)

  5. In order to increase the accuracy, use the second model to do hnm and get the final model(script 7)

  6. Finally, choose an algorithm you like to do location(script 8 or 9 or 10)

PS:

  1. The reason I use pca is to accelerate the speed of pso. To be honestly, pso is really slow.

  2. For step 4, you can also use features processed by pca, but I strongly advise you to hold as possible as more features. Because more features, higher accuracy.

杯子数据集(Dataset): https://pan.baidu.com/s/18ho4UI50x4YP6lkrjPm7Kw

中文地址:http://blog.csdn.net/renhanchi/article/category/7007663

强烈建议将6篇文章都仔细看一遍,再来跑代码,或者边看边跑。内容不是很多,但是会对你理解算法和代码有很大帮助。

svm-classification-localization's People

Contributors

hansren1024 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

svm-classification-localization's Issues

PSO +PCA model

Hello,

Very nice implemantation of Hog + SVM and other algorithms!!
Unfortunately, I am stuck with the 6. script where PSO and PCA algorithms because the next script where the had negative mining requires a "svm_pso.model" but I can only generate "svm_20pixel_pca_100.model" with the previous script (5_Test_PCA+SVM).

Can you please point out where I make mistake?

Best regards.

博主,请教一个问题

image
如果假设要在图中定位识别这种类型数据,在训练数据量少的情况下,你觉得你是用类似于你8,9,10的传统方法好,还是用Faster R-CNN/SSD之类的好,还有你这种传统的滑动窗口方法,和SIFT/SURF那种算子匹配,那种更好一点

Unable to create svm_pso.model file

Hi,

When I am running 6th script, it’s not creating any svm_pso.model file and this file is required for all script(7,8,9,10). Please help me out with complete solution

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.