GithubHelp home page GithubHelp logo

deepregression's Introduction

A Comprehensive Analysis of Deep Regression

This repository contains the code that was used in the experiments of this paper.

Tested with keras 1.1.0 with theano backend and python 2.7.12.

Requieres the installation of scikit-learn.


How to run:

We recommend you to use our exemple_script.sh. In this file you can specify the dataset and the options you want to use.

Data

trainingAnnotations.txt must contain the list of the training images followed by the targets:

path_img_name_1.jpg y1 y2 y3
path_img_name_2.jpg y1 y2 y3 
...

validationAnnotations.txt and testAnnotations.txt must contain the list of the validation and test images with the same format.

Importantly the images and annotation files must be located at /pathToData/. In other words, 'path_img_name_1.jpg" is the path of the first traininng image relatively to /pathToData/.

Pretrained weights

You need to change the weight file paths in VGG16_sequential.py and resnet50.py.

Others

We provide 4 main files:

  • resNetStandard.py: resnet in the case where the validation set is automatically extracted from the training set.
  • resNetStandardWithVal.py: resnet in the case where the validation set is given.
  • VGGStandard.py: VGG16 in the case where the vqlidation set is automatically extracted from the training set.
  • VGGStandardWithVal.py: VGG16 in the case where the validation set is given.

The JOB_ID is a job id used to save the network weights. You can give any number. $rootpathData is the path to your dataset folder.


Options:

  • BatchNormalization: -bn: with BN -bnba: with BN before the last activation -nbn: no BN

  • Finetunning: '-ft x' with x in {0,1,2,3}, finetune x blocks nbBlock=int(sys.argv[idarg+1])

  • Batch size: '-bs x': use batches of size x

  • Optimizer: '-opt x' with x in {adam, adadelta, rmsprop,adagrad}

  • Regression layer: '-rf x' with x in {cov,fc1}. otherwise the default value is fc2

  • Dropout: '-do x': with x in {-1,0,1,2}

    • -1: refered to as 00 in the paper
    • 0: 10
    • 1: 01
    • 2: 11

Support

For any question, please contact Stéphane Lathuilière.

deepregression's People

Watchers

 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.