Git Product home page Git Product logo

invrender's Introduction

Modeling Indirect Illumination for Inverse Rendering

Preparation

  • Set up the python environment
conda create -n invrender python=3.7
conda activate invrender

pip install -r requirement.txt

Run the code

Training

Taking the scene hotdog as an example, the training process is as follows.

  1. Optimize geometry and outgoing radiance field from multi-view images. (Same as IDR)

    cd code
    python training/exp_runner.py --conf confs_sg/default.conf \
                                  --data_split_dir ../Synthetic4Relight/hotdog \
                                  --expname hotdog \
                                  --trainstage IDR \
                                  --gpu 1
  2. Draw sample rays above surface points to train the indirect illumination and visibility MLP.

    python training/exp_runner.py --conf confs_sg/default.conf \
                                  --data_split_dir ../Synthetic4Relight/hotdog \
                                  --expname hotdog \
                                  --trainstage Illum \
                                  --gpu 1
  3. Jointly optimize diffuse albedo, roughness and direct illumination.

    python training/exp_runner.py --conf confs_sg/default.conf \
                                  --data_split_dir ../Synthetic4Relight/hotdog \
                                  --expname hotdog \
                                  --trainstage Material \
                                  --gpu 1

Relighting

  • Generate videos under novel illumination.

    python scripts/relight.py --conf confs_sg/default.conf \
                              --data_split_dir ../Synthetic4Relight/hotdog \
                              --expname hotdog \
                              --timestamp latest \
                              --gpu 1

Citation

@inproceedings{zhang2022invrender,
  title={Modeling Indirect Illumination for Inverse Rendering},
  author={Zhang, Yuanqing and Sun, Jiaming and He, Xingyi and Fu, Huan and Jia, Rongfei and Zhou, Xiaowei},
  booktitle={CVPR},
  year={2022}
}

Acknowledgements: part of our code is inherited from IDR and PhySG. We are grateful to the authors for releasing their code.

invrender's People

Contributors

yuanqing-zhang 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.