rshravan / UberNet

Demo for CVPR 2017 paper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intro

First release of UberNet in "test" mode. The demo performs all of the UberNet tasks using a VGG16-architecture network.

This repository builds on the py-faster-rcnn (https://github.com/rbgirshick/py-faster-rcnn) release of faster-rcnn, which in turn builds on the caffe library. The py-faster-rcnn instructions directly allow one to compile the present code (copied below for convenience). The main changes to the original py-faster-rcnn release have been annotated with a prefix and a suffix.

Forthcoming:

  • code that allows to get normalized cut eigenvectors from image boundaries.
  • training code.
  • ResNet-based models.

License

UberNet is released under the GPL License (refer to the UberNet-LICENSE file for details). Faster-RCNN is released under the MIT License (refer to the Faster-RCNN-LICENSE file for details).

Citing UberNet

If you find UberNet useful in your research, please consider citing: @inproceedings{ubernet, Author = {Iasonas Kokkinos}, Title = {UberNet: Training a `Universal' Convolutional Neural Network for Low-, Mid-, and High-Level Vision using Diverse Datasets and Limited Memory}, Booktitle = {Computer Vision and Pattern Recognition (CVPR)}, Year = {2017} }

Contents

  1. Requirements: software
  2. Requirements: hardware
  3. Basic installation
  4. Demo

Requirements: software

  1. Requirements for Caffe and pycaffe (see: Caffe installation instructions)

Note: Caffe must be built with support for Python layers!

# In your Makefile.config, make sure to have this line uncommented
WITH_PYTHON_LAYER := 1
# Unrelatedly, it's also recommended that you use CUDNN
USE_CUDNN := 1

You can download my Makefile.config for reference. 2. Python packages you might not have: cython, python-opencv, easydict

Requirements: hardware

You will need a GPU to run the code (does not work in CPU-only mode). The present code is memory-efficient in the forward pass, but you may modify the .prototxt file to further reduce memory usage (please consult the paper, ubernet/test.prototxt and net.cpp to understand how the "deletetop", "deletebottom" variables are used)

Installation (sufficient for the demo)

  1. Clone the UberNet repository
git clone https://github.com/jkokkin/UberNet.git
  1. We'll call the directory that you cloned UberNet into UBERNET_ROOT

  2. Build the Cython modules

    cd $UBERNET_ROOT/lib
    make
  3. Build Caffe and pycaffe

    cd $UBERNET_ROOT/caffe-fast-rcnn
    # Now follow the Caffe installation instructions here:
    #   http://caffe.berkeleyvision.org/installation.html
    
    # If you're experienced with Caffe and have all of the requirements installed
    # and your Makefile.config in place, then simply do:
    make -j8 && make pycaffe
  4. Download a trained UberNet model from here: https://www.dropbox.com/s/fbeg10aoicn4wc4/model.caffemodel?dl=0 and place it under $UBERNET_ROOT/model

Demo

To run the demo

cd $UBERNET_ROOT
./demo/demo_ubernet.py

About

Demo for CVPR 2017 paper

License:GNU General Public License v3.0


Languages

Language:Jupyter Notebook 47.5%Language:C++ 38.5%Language:Python 7.3%Language:Cuda 3.1%Language:CMake 1.4%Language:Protocol Buffer 0.8%Language:MATLAB 0.5%Language:Makefile 0.3%Language:Shell 0.3%Language:C 0.1%Language:CSS 0.1%Language:HTML 0.1%Language:M 0.0%