Awesome
<!--<h3><b>DPR</b></h3>--><b>Deep Single-Image Portrait Relighting</b> [Project Page] <br>
Hao Zhou, Sunil Hadap, Kalyan Sunkavalli, David W. Jacobs. In ICCV, 2019
<p><img src="result/obama_00.jpg" width="120px" > <img src="result/obama_01.jpg" width="120px" > <img src="result/obama_02.jpg" width="120x" > <img src="result/obama_03.jpg" width="120px" > <img src="result/obama_04.jpg" width="120px" > <img src="result/obama_05.jpg" width="120px" > <img src="result/obama_06.jpg" width="120px" > </p> <p><img src="result/light_00.png" width="120px" > <img src="result/light_01.png" width="120px" > <img src="result/light_02.png" width="120x" > <img src="result/light_03.png" width="120px" > <img src="result/light_04.png" width="120px" > <img src="result/light_05.png" width="120px" > <img src="result/light_06.png" width="120px" > </p>Overview
- Test script for 512x512 images:
testNetwork_demo_512.py
- Test script for 1024x1024 images:
testNetwork_demo_1024.py
Dependencies
<p> pytorch >= 1.0.0 </p> <p> opencv >= 4.0.0 </p> <P> shtools: https://shtools.oca.eu/shtools/ (optional)</p>Notes
We include an example image and seven example lightings in data. Note that different methods may have different coordinate system for Spherical Harmonics (SH), you may need to change the coordiante system if you use SH lighting from other sources. The coordinate system of our method is in accordance with shtools, we provide a function utils_normal.py in utils to help you tansfer the coordinate system from bip2017 and sfsNet to our coordinate system. To use utils_normal.py you need to install shtools. The code is for research purpose only.
Data Preparation
We publish the code for data preparation, please find it in (https://github.com/zhhoper/RI_render_DPR).
Citation
If you use this code for your research, please consider citing:
@InProceedings{DPR,
title={Deep Single Portrait Image Relighting},
author = {Hao Zhou and Sunil Hadap and Kalyan Sunkavalli and David W. Jacobs},
booktitle={International Conference on Computer Vision (ICCV)},
year={2019}
}