Home

Awesome

Multi-scale Self-calibrated Network for Image Light Source Transfer

Team: Wit-AI-lab

Members: Yuanzhi Wang, Tao Lu, Yanduo Zhang, Yuntao Wu

It contains the codes to attend NTIRE 2021: Depth-Guided Image Relighting Challenge Track 1: One-to-one relighting

Paper link: CVPR&NTIRE 2021

Prerequisites

Getting Started

Installation

conda create -n MCN python=3.7
conda install pytorch==1.5.1 torchvision==0.6.1 cudatoolkit=10.2 -c pytorch
pip install dominate
pip install kornia==0.2.0
pip install git+https://github.com/S-aiueo32/lpips-pytorch.git

Pre-trained model

Please download pre-trained model Google drive link: Download

Testing

python test.py

The test results will be saved to the folder: ./output.

Training

python train.py

Note that for the preparation of the dataset, please refer to DRN. Please set the dataset path in data/aligned_dataset.py (line 24).

Citation

If you find the code helpful in your resarch or work, please cite the following papers.

@InProceedings{Wang_2021_CVPR,
    author    = {Wang, Yuanzhi and Lu, Tao and Zhang, Yanduo and Wu, Yuntao},
    title     = {Multi-Scale Self-Calibrated Network for Image Light Source Transfer},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops},
    month     = {June},
    year      = {2021},
    pages     = {252-259}
}

Acknowledgments

This code borrows heavily from DRN.