Giter Club home page Giter Club logo

mc-cnn-chainer's Introduction

MC-CNN-Chainer

This repository provides a Chainer implementation and pre-trained models of MC-CNN proposed in

Jure Zbontar and Yann LeCun:
"Stereo Matching by Training a Convolutional Neural Network to Compare Image Patches",
Journal of Machine Learning Research, vol. 17, pages 1-32, 2016.

Our pre-trained models are produced by importing network weights from their original pre-trained models in https://github.com/jzbontar/mc-cnn. Our imlementation uses much less GPU memories for computing matching costs.

Remarks

  • We only provide code for inference. Training code is not included.
  • We only provide code of convolutional neural networks. Code for subsequent cross-based and SGM-based cost aggregation parts is not included.
  • We do not guarantee the exactly same results with the original implementations. (There might be slight numerical differences)
  • If you are not satisfied with the above remarks, please use the original code by the authors.

Required Environments

  • Python 3
  • Chainer (v2 or v3)
  • OpenCV-Python
  • CUDA + CuDNN (for the GPU mode)

Install

pip install chainer
pip install opencv-contrib-python==3.2.0.8

Usage

After installing the required environments, do either of the following commands.

% For CPU mode
python demo.py

% For GPU mode
python demo.py -g 1

% For saving cost volume data
python demo.py -g 1 -v 1

Reference

This code is intended to facilitate generation of cost volume data for input of our stereo method below. If you also find this work useful for your research, please cite our TPAMI paper.

@article{Taniai18,
  author    = {Tatsunori Taniai and
               Yasuyuki Matsushita and
               Yoichi Sato and
               Takeshi Naemura},
  title     = {{Continuous 3D Label Stereo Matching using Local Expansion Moves}},
  journal   = {{IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI)}},
  year      = {2018},
  volume    = {40},
  number    = {11},
  pages     = {2725--2739},
  doi       = {10.1109/TPAMI.2017.2766072},
}

See also: [Project] [GitHub] [Preprint]

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.