Giter VIP home page Giter VIP logo

ffj-cs294a's Introduction

Hi all!

here is our texture detection package up to now.

to train a model on data you should do the following:
create a directory containing the following sub-directories.
directory named test containing test examples , a directory named train
containing training examples. each of these dierctories should have
a directory called positive and negative . positive should contain positive
examples and negative should negative examples.

Check out the run_script file to see how running training and testing works when
calling them one after another.

to train an SVM you should call something like:
train_model('images/T01_bark1', 'images/T16_glass1', 'svm_train_bg', 'svm_param_bg', 'centroid_file', 'images/centroid_features_bg', 'desc', 'rift', 'keypt', 'hl', 'threshold', 0.005)
             pos_directory       neg_directory        trainfile       paramfile    -  options

A full list of the possible options

'desc' : 'rift' 'sift' or 'spin' descriptors are currently availabel
'keypt' : 'harris_laplace', 'harris_corner', 'sift' keypoints
'cell size': is the size of region selected around each key point, spin and rift and sift
'ori_binsize' : for RIFT the number of orientation bins
'cl_algo' : classifier algorithm - decides which type of classifier to use
'intens_binsize' : for spin image and RIFT descriptors
'dist_binsize'  : for spin image descriptors
'centroid_features' : which features became our centroids for
'max_points'        : the maximum number of keypoints we are willing
                      to consider.

'k' : represents the k value for harris corner detector, if you want
      to change it from the default of 0.04
'threshold' : represents the threshold value for harris corner detector or
              whatever keypoint  detector needs a threshold
'sigma' : represents the sigma value for the harris corner detector using
          the gaussian window              
'width' : window width for harris corner detector (not harris laplace)
'dx'    : the gradient mask being used for harris corner (not harris laplace)

not used in process but in other functions
'pt' : represents a given keypoint (100, 223) for example.
'ext' : the extension we want to use for some of our files
        should never have to touch this.

and to test your model you should call 
test_model(....., centroid_features)
centroid_features are necessary so that we can 

ffj-cs294a's People

Watchers

James Cloos avatar

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.