Giter Site home page Giter Site logo

tensorbox's Introduction

TensorBox is a simple framework for training neural networks to detect objects in images. Training requires a text file (see here, for example) of paths to images on disk and the corresponding object locations in each image. The basic model implements the simple and robust GoogLeNet-OverFeat algorithm. We additionally provide an implementation of the ReInspect algorithm, reproducing state-of-the-art detection results on the highly occluded TUD crossing and brainwash datasets.

Special thanks to Brett Kuprel of Sebastian Thrun's group for providing the initial code to hack into Google's pretrained ImageNet weights for finetuning.

OverFeat Installation & Training

First, install TensorFlow from source or pip

$ git clone http://github.com/russell91/tensorbox
$ cd tensorbox
$ ./download_data.sh
$ python train.py --hypes hypes/overfeat_rezoom.json --gpu 0 --logdir output

Note that running on your own dataset should only require modifying the hypes/overfeat_rezoom.json file. When finished training, you can use code from the provided ipython notebook to get results on your test set.

ReInspect Installation & Training

ReInspect, initially implemented in Caffe, is a neural network extension to Overfeat-GoogLeNet in Tensorflow. It is designed for high performance object detection in images with heavily overlapping instances. See the paper for details or the video for a demonstration.

$ git clone http://github.com/russell91/tensorbox
$ cd tensorbox
$ ./download_data.sh

$ # Install tensorflow from source
$ git clone --recurse-submodules https://github.com/tensorflow/tensorflow
$ # Add code for the custom hungarian layer user_op
$ cp /path/to/tensorbox/utils/hungarian/hungarian.cc /path/to/tensorflow/tensorflow/core/user_ops/
$ # Proceed with the GPU installation of tensorflow from source...
$ # (see https://www.tensorflow.org/versions/r0.7/get_started/os_setup.html#installing-from-sources)

$ cd /path/to/tensorbox/utils && make && cd ..
$ python train.py --hypes hypes/lstm_rezoom.json --gpu 0 --logdir output

Tensorboard

You can visualize the progress of your experiments during training using Tensorboard.

$ cd /path/to/tensorbox
$ tensorboard --logdir output
$ # (optional, start an ssh tunnel if not experimenting locally)
$ ssh myserver -N -L localhost:6006:localhost:6006
$ # open localhost:6006 in your browser

For example, the following is a screenshot of a Tensorboard comparing two different experiments with learning rate decays that kick in at different points. The learning rate drops in half at 60k iterations for the green experiment and 300k iterations for red experiment.

tensorbox's People

Contributors

kuprel avatar graydyn avatar

Watchers

James Cloos avatar Ye Tian (田野) 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.