Coder Social home page Coder Social logo

bruinxiong / one_shot_3d_photography Goto Github PK

View Code? Open in Web Editor NEW

This project forked from facebookresearch/one_shot_3d_photography

0.0 1.0 0.0 51.06 MB

This repository contains the code release for the SIGGRAPH 2020 paper "One Shot 3D Photography"

License: MIT License

Python 100.00%

one_shot_3d_photography's Introduction

[SIGGRAPH 2020] One Shot 3D Photography

This is the code for the ``Tiefenrausch'' depth estimation method, described in our paper One Shot 3D Photography in SIGGRAPH 2020.

It reproduces the row in Table 1 labeled "Tiefenrausch (AS + quant)", and can be used for evaluation.

To achieve better quality, i.e., as in the version we use in the Facebook App, it needs to be trained with a more varied dataset such as in the last row in Table 1.

This method produces depth maps only. If you want to create 3D photos, you can use the Facebook app, or if you're looking for an OSS implementation, you can use this code https://github.com/vt-vl-lab/3d-photo-inpainting

Please find more details on our project page: https://facebookresearch.github.io/one_shot_3d_photography/

Prerequisites:

conda create -yn one_shot python=3.7
conda activate one_shot
conda install --file requirements.txt -c conda-forge -c pytorch

Process a single image

python cli.py --src_file ./input/pumpkin.jpg --out_file ./output/pumpkin.npy --vis_file ./output/pumpkin.png

Process a directory

python cli.py --src_dir ./input/ --out_dir ./output/ --vis_dir ./output/

Citation

If you use our code, consider citing our paper:

@article{Kopf-OneShot-2020,
  author    = {Johannes Kopf and Kevin Matzen and Suhib Alsisan, Ocean Quigley and Francis Ge and Yangming Chong and Josh Patterson and Jan-Michael Frahm and Shu Wu and Matthew Yu and Peizhao Zhang and Zijian He and Peter Vajda and Ayush Saraf and Michael Cohen},
  title     = {One Shot 3D Photography},
  booktitle = {ACM Transactions on Graphics (Proceedings of ACM SIGGRAPH)},
  publisher = {ACM},
  volume = {39},
  number = {4},
  year = {2020}
}

License

This work is licensed under MIT License. See LICENSE for details.

one_shot_3d_photography's People

Watchers

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