Giter Site home page Giter Site logo

kod3r / vlad-implementation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ameya005/vlad-implementation

1.0 1.0 0.0 25.36 MB

Implements Vector of Locally Aggregated Descriptors according to Jegou's paper, for TagMe Image Categorization Competition, 2014

vlad-implementation's Introduction

TagMe: Image Categorization

Team: GodFellas Author: Ameya Joshi - [email protected] Requirements: Boost libraries, OpenCV v2.4 or greater

Files and Functions:

Training:

  1. sorter.cpp - Will sort the images from the training set into folders according to labels. Input required: list of filenames-list.txt
  2. surf.cpp - Creates the SURF vectors for each class and aggregates them into xml files per class. Input required: sorted images with list of images in each folder.
  3. BOWKtrainer.cpp - Reads the aggregated descriptor xml files and runs k means clustering for getting the vocabulary file. Input: All agggregated Descriptor files in a folder
  4. VLAD.cpp- Uses the vocabulary generated along with the descriptors for each image to get the response VLAD vectors for each image. Aggregates them as per class. Input: Vocabulary.xml, list of directories of classes-dir.txt, list of images-list.txt for each directory
  5. svm_train.cpp - Trains an RBF SVM and outputs a classifier. Input: Aggregated VLAD vector files in a directory.

Testing:

  1. svmTest_VLAD.cpp : Runs the trained classifier and outputs the preicted labels file. Inputs: Classifier file, vocabulary file, validtion images in a folder with a list.txt

Pipeline to use:

sorter->surf->BOWKtrainer->VLAD->svm_train---->svmTest_VLADs

Notes:

  1. Please make list.txt files for each folder after sorter.
  2. Make a dir.txt file for the set of directories. Example included.
  3. Put all necessary xml files generated in one folder with a list.txt to run the code.

Required file tree

					Root
					 |	

| | | | | | | | | | 1 2 3 4 5 SURFDescriptors SURFVLAD classifier.xml vocabulary.xml dir.txt | | | | | | | list.txt(for each directory)

Algorithm is described briefly in the supporting document TagMe.pdf. Please look at the code fiiles for further documentation.

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.