Coder Social home page Coder Social logo

svbrdf-gan's Introduction

Joint SVBRDF Recovery and Synthesis

Source code of our paper:

Joint SVBRDF Recovery and Synthesis From a Single Image using an Unsupervised Generative Adversarial Network ** (EGSR 2020)

Yezi Zhao, Beibei Wang*, Yanning Xu, Zheng Zeng, Lu Wang, Nicolas Holzschuch

(* joint first author)

Requirements

  • Python 3.6, numpy, Tensorflow-gpu 1.4
  • 8G GPU Memory (test on GTX 1070)

Usage

The following command will train the network on a captured image, and output intermediate result during training as well as recovered and synthesized SVBRDF maps of a cental cropped tile of the captured image (considering gpu memory).

python train.py --input_dir aittalaimgs/plastic_red_input.jpg --log_dir logs/0614-plastic_red --output_dir predictions/0614-plastic_red --crop_size 800

--input_dir path to the captured image. We offer several images for testing, and the whole captured images dataset can be find here: https://mediatech.aalto.fi/publications/graphics/TwoShotSVBRDF/

--log_dir folder to save checkpoint.

--output_dir folder to save recovered SVBRDF maps.

--crop_size define the size of a cropped tile from the captured image, default is 800. This tile is to be sent to the network and get 2ร— size SVBRDF maps. crop_size depends on the GPU memory, larger size might cause OOM error.

--img_h, --img_w define the height and width of your captured image, default 1224* 1632.

Citation

Acknowledgements

Implementation based on https://team.inria.fr/graphdeco/projects/deep-materials/ and modified. We sincerely thank for their great work.

svbrdf-gan's People

Contributors

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