GithubHelp home page GithubHelp logo

compmirrors's Introduction

Computational Mirrors: Blind Inverse Light Transport by Deep Matrix Factorization

Paper Link: https://arxiv.org/abs/1912.02314

Paper Webpage: http://compmirrors.csail.mit.edu

We present the implementation for both matrix factorization (Figure 4) and blind light transport factorization (Figure 6) methods presented in the paper.

Setup

git clone https://github.com/prafull7/compmirrors
cd compmirrors

Our code runs using Python=3.7 with the following packages:

  • torch=1.0.1.post2
  • matplotlib
  • scipy
  • visdom

Matrix Factorization

The implementation for the file is present in factorization_1d.py. It can be run using the command:

python factorization_1d.py -T ./data/inputs_1d/lightfield.png -L ./data/inputs_1d/tracks_bg.png -o ./outdir_1d 

Blind Light Transport Factorization

The implementation for the one-off training is in factorization_light_transport.py. It can be run using the command:

export FACTORIZE_DATA_DIR=/path/to/where/data/folders/
export FACTORIZE_OUT_DIR=/path/to/output/directory
python factorization_light_transport.py -d ./data/light_transport/ -f FOLDER_NAME -ds DATASET_NAME -s SEQUENCE_NAME -dev DEVICE_NUMBER

In the above command:

  • FOLDER_NAME: Name of the folder in the dataset folder to run i.e. disc_data.
  • DATASET_NAME: Prefix of the dataset within that folder, i.e. mnist.
  • SEQUENCE_NAME: Name of the sequence to run. These can be found as the key names in frames.txt file within each folder.
  • DEVICE_NAME: GPU id to run the code.

compmirrors's People

Contributors

prafull7 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.