Giter Site home page Giter Site logo

kankan-sarkar / pedestriandetector Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 153.48 MB

PedestrianDetector Implementation using SVM and Random Forest. SVM , RDF , PEDESTRIAN DETECTION

Home Page: https://github.com/trripy/PedestrianDetector.git

Python 0.04% Perl 7.51% Jupyter Notebook 92.45%

pedestriandetector's Introduction

PedestrianDetector Implementation using SVM and Random Forest

File Execution Sequence

Hog Implementation(Histogram of oriented Gradient)

Gradient Calculation(Gx, Gy, Magnitude , and orientation)

HOG output Visualization(my implementation vs Skimage HOG implementation). Greyscale pixel values are used to represent magnitudes and arrows to represent orientations

Generate positive and negative instance. The positive and negative instances which are generated are kept in two separate directories

  • …\data\train_pos
  • …\data\train_neg

Class-balanced random train/test split using sklearn.model_selection methods

Train an Sklearn random decision forest on feature vectors generated using your HOG function from (1)

Grid-based cross validation

0.9969 (+/-0.0083) for {'max_depth': 5, 'n_estimators': 200}
0.9979 (+/-0.0051) for {'max_depth': 5, 'n_estimators': 400}
0.9969 (+/-0.0083) for {'max_depth': 5, 'n_estimators': 600}
0.9969 (+/-0.0083) for {'max_depth': 5, 'n_estimators': 800}
0.9969 (+/-0.0083) for {'max_depth': 5, 'n_estimators': 1000}
0.9990 (+/-0.0041) for {'max_depth': 10, 'n_estimators': 200}
0.9990 (+/-0.0041) for {'max_depth': 10, 'n_estimators': 400}
0.9990 (+/-0.0041) for {'max_depth': 10, 'n_estimators': 600}
0.9990 (+/-0.0041) for {'max_depth': 10, 'n_estimators': 800}
0.9979 (+/-0.0051) for {'max_depth': 10, 'n_estimators': 1000}

  • max_depth -> Change in max depth from 5 to 10 increased the grip score

Training an Sklearn support vector classifier on feature vectors generated using your HOG function from (1)

Use grid-based cross validation to optimize the support vector classifier hyper parameters

0.9884 (+/-0.0129) for {'C': 1, 'gamma': 0.01, 'kernel': 'rbf'}
0.9705 (+/-0.0124) for {'C': 1, 'gamma': 0.001, 'kernel': 'rbf'}
0.9457 (+/-0.0156) for {'C': 1, 'gamma': 0.0001, 'kernel': 'rbf'}
0.9932 (+/-0.0099) for {'C': 10, 'gamma': 0.01, 'kernel': 'rbf'}
0.9903 (+/-0.0148) for {'C': 10, 'gamma': 0.001, 'kernel': 'rbf'}
0.9705 (+/-0.0124) for {'C': 10, 'gamma': 0.0001, 'kernel': 'rbf'}
0.9932 (+/-0.0099) for {'C': 15, 'gamma': 0.01, 'kernel': 'rbf'}
0.9932 (+/-0.0099) for {'C': 15, 'gamma': 0.001, 'kernel': 'rbf'}
0.9742 (+/-0.0127) for {'C': 15, 'gamma': 0.0001, 'kernel': 'rbf'}
0.9942 (+/-0.0113) for {'C': 1, 'kernel': 'linear'}
0.9942 (+/-0.0113) for {'C': 10, 'kernel': 'linear'}
0.9942 (+/-0.0113) for {'C': 15, 'kernel': 'linear'}

  • It is both dependent on C and gamma parameter

Results

pedestriandetector's People

Watchers

kankan avatar

Forkers

fantasy2me

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.