Giter VIP home page Giter VIP logo

torch-inria's Introduction

torch-INRIA

makeClasses is a simple script that loads face, torso, body and background samples from INRIA dataset and saves them in a ImageNet compatible format. This means, object are fairly centred and the sample size is 256 × 256 px².

In this first release, the dataset has to be downloaded manually from here and extracted into ~/Work/Datasets.

In the code there is my user name (~ = /Users/atcold). I will probably update it in a following commit.

What this script does is simply extract every face, torso and body from the positive and background from the negative folder, cropping them square and saving them into a Extracted-data folder, under a sub-directory representing their label.

  • Face: are sized 1/3 of the width of the bounding box;
  • Torso: upper biggest square croppable from the bounding box;
  • Body: square with side equal to the hight of the bounding box. If the limits of the image are exceeded (the image is too narrow), the first/last column of pixel is replicated to fill the gap;
  • Bckg: squares of 128 px are cropped randomly from the negative samples.

And this is how they look like

Face Torso Body Bckg

How to run it

After changing the folder pointers in the code (which I will make soon automatic), in the src directory, run

th makeClasses.lua

How is this done?

To have an idea of the information provided with the dataset, I wrote checkBox which gives a general idea of what we can do with the data. To run it, go to the src directory and type

qlua checkBox.lua

Bounding-box

torch-inria's People

Contributors

atcold 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.