Git Product home page Git Product logo

marcelomata / unsupervised-learning-intrinsic-images Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhengqili/unsupervised-learning-intrinsic-images

0.0 2.0 0.0 229 KB

Implementation of the intrinsic image decomposition algorithm described in "Learning Intrinsic Image Decomposition from Watching the World, Z. Li and N. Snavely, CVPR 2018"

License: MIT License

OpenEdge ABL 46.97% Python 31.78% Makefile 0.03% C++ 20.57% Lua 0.22% C 0.43%

unsupervised-learning-intrinsic-images's Introduction

Learning Intrinsic Image Decomposition from Watching the World

This is an implementation of the intrinsic image decomposition algorithm described in "Learning Intrinsic Image Decomposition from Watching the World, Z. Li and N. Snavely, CVPR 2018". The code skeleton is based on "https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix". If you use our code for academic purposes, please consider citing:

@inproceedings{BigTimeLi18,
  	title={Learning Intrinsic Image Decomposition from Watching the World},
  	author={Zhengqi Li and Noah Snavely},
  	booktitle={Computer Vision and Pattern Recognition (CVPR)},
  	year={2018}
}

Website: http://www.cs.cornell.edu/projects/bigtime/

Dependencies & Compilation:

  • The code was written in Pytorch <=0.2 and Python 2, but it should be easy to adapt it to Python 3 version if needed.
  • The sparse matrix construction for spatial-temporal densely connected smoothness term is based on the modifed code from https://github.com/seanbell/intrinsic. In particular, you need to build C++ code in "data/krahenbuhl2013/" before trainning the networks. On Ubuntu 16.04 you need to install Eigen3 to its default directory (/usr/include/eigen3), then you can build the C++ code with:
    cd data/krahenbuhl2013/
    make

Please see https://github.com/seanbell/intrinsic for detail.

UPDATES: EASY WAY to get predictions/evaluations on the IIW/SAW test sets:

Now we provide precomputed predictions on IIW test set and SAW test set.

    python compute_iiw_whdr.py

(you might need to change judgement_path in this python script to fit to your IIW data path)

    python compute_saw_ap.py

You need modify 'full_root' in this script and to point to the SAW directory you download. To evlaute on AP% described in the paper, set 'mode = 0' in compute_saw_ap.py.

Evaluation on the IIW/SAW test splits:

    python test_iiw.py
  • To run evaluation on SAW test split, in main direcotry, change the path variable "saw_root" to the path of SAW dataset in "test_saw.py" and run:
    python test_saw.py

Training on the BigTime dataset:

  • Download the BigTime dataset from our website: http://landmark.cs.cornell.edu/projects/bigtime/BigTime_v1.tar.gz
  • Change path variable "saw_root" to the path of SAW dataset. Change path variable "IIW_root" to the path of IIW dataset. Change path variable "train_root" to the path of BigTime.
  • build C++ code in "data/krahenbuhl2013/"
  • Change to "self.isTrain = True" in python file "/options/train_options.py", and run:
    python train.py

unsupervised-learning-intrinsic-images's People

Contributors

zhengqili avatar

Watchers

James Cloos avatar  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.