Our paper is accepted by CVPR2020.
Picture: Our method learns intrinsic image decomposition in an unsupervised fashion where the ground truth reflectance and shading is not available in the training data.
**Picture:** *The proposed architecture.* **Picture:** *Visual results on MPI Sintel benchmark.*This repository contains the official PyTorch implementation of the following paper:
Unsupervised Learning for Intrinsic Image Decomposition from a Single Image
Yunfei Liu, Yu Li, Shaodi You, Feng Lu
https://arxiv.org/abs/1911.09930Abstract: Intrinsic image decomposition, which is an essential task in computer vision, aims to infer the reflectance and shading of the scene. It is challenging since it needs to separate one image into two components. To tackle this, conventional methods introduce various priors to constrain the solution, yet with limited performance. Meanwhile, the problem is typically solved by supervised learning methods, which is actually not an ideal solution since obtaining ground truth reflectance and shading for massive general natural scenes is challenging and even impossible. In this paper, we propose a novel unsupervised intrinsic image decomposition framework, which relies on neither labeled training data nor hand-crafted priors. Instead, it directly learns the latent feature of reflectance and shading from unsupervised and uncorrelated data. To enable this, we explore the independence between reflectance and shading, the domain invariant content constraint and the physical constraint. Extensive experiments on both synthetic and real image datasets demonstrate consistently superior performance of the proposed method.
Material related to our paper is available via the following links:
- Paper: https://arxiv.org/abs/1911.09930
- Project: http://liuyunfei.net/Projs/USI3D/
- Code: https://github.com/DreamtaleCore/USI3D
- Only Linux is tested, Windows is under test.
- 64-bit Python 3.6 installation.
- PyTorch 1.2.0 or newer with GPU support.
- One or more high-end NVIDIA GPUs with at least 8GB of DRAM.
- NVIDIA driver 391.35 or newer, CUDA toolkit 9.0 or newer, cuDNN 7.3.1 or newer.
- Download the pretrained model, and put them to the
pretrained_model
dir - Run the command below to decompose images into albedo and shading
python3 test.py -c configs/intrinsic_MPI.yaml -i /your/test/images/root/ -o ./results/ -p /pretrained_model/MPI.pt
Then then results will be generated in the ./results
dir.
- Download the dataset to your
<your_dataset_root>
. - Midify the
data_root
to<your_dataset_root>
in the*.yaml
in the./configs
. - Run the commands below to train the model.
python3 train.py -c configs/intrinsic_MPI.yaml -o ./checkpoints/ -g <your gpu id>
If you find this work or code is helpful in your research, please cite:
@inproceedings{Liu2020Unsupervised,
title={Unsupervised Learning for Intrinsic Image Decomposition from a Single Image},
author={Liu, Yunfei and Li, Yu and You, Shaodi and Lu, Feng},
booktitle={CVPR},
year={2020}
}
If you have any questions, feel free to E-mail me via: lyunfei(at)buaa.edu.cn