Git Product home page Git Product logo

gradnet's Introduction

GradNet

A tensorflow 2.0 implementation of SIGGRAPH Asia 2019 paper: GradNet: Unsupervised Deep Screened Poisson Reconstruction for Gradient-Domain Rendering

The origin paper can be found GradNet: Unsupervised Deep Screened Poisson Reconstruction for Gradient-Domain Rendering

Thanks Mengtian Li and Jie Guo for their help.

Note that, this is no the official implementation.

Environment

  • Python 3.7
  • Tensorboard 2.0.0
  • Tensorflow 2.0
  • Openexr 1.3.2

How to train

Data prepartaion

  • Generate images and the corresponding gradients by gradient domain render.You need to record normal, depth and albedo during the rendering procedure.
  • Organize the directory structure like the description blow:
your_data_dir
  |--sence1
  |   |--grad
  |   |    |--sence1_1.gx
  |   |    |--sence1_1.gy
  |   |      ...
  |   |--sence1_1.exr
  |   |--sence1_1_feature.txt
  |   |  ...
  |
  |--sence2
   ...
  • Modify thedata_dir to your train data directory , scene_list to your scenes in create_tfrecord_random.py.
  • Run python create_tfrecord_random.py to generate tfrecords. It will randomly extract 15 patches of size 256x256 from each image and preprocess them according to the paper.

Train

  • Copy some tfrecords to data/val/ as validation set.
  • Modify the steps_per_epoch and val_steps in train.py.
  • Run python train.py.
  • You can run tensorboard --logdir log to watch the training process.

Test

  • prepare test image, gradients and features.Put image and features into data/test/, put gradient image into data/test/grad/.
  • Modify filepath_weights in test.py.
  • Run python test.py.
  • You can see the results in data/test/res/

gradnet's People

Contributors

starry316 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.