GithubHelp home page GithubHelp logo

weitingchen83 / ntire2021-depth-guided-image-relighting-mbnet Goto Github PK

View Code? Open in Web Editor NEW
19.0 7.0 2.0 2.65 MB

The 1st place solution to CVPR 2021 NTIRE Depth Guided Image One-to-One Relighting MBNet

Home Page: https://github.com/weitingchen83/NTIRE2021-CVPR-Depth-Guided-Image-One-to-One-Relighting-MBNet

Python 100.00%
computer-vision image-processing relighting relight cvpr paper-download ntire mb-net image-rendering image-relighting

ntire2021-depth-guided-image-relighting-mbnet's Introduction

Multi-modal Bifurcated Network for Depth Guided Image Relighting (MB-Net)

NTIRE 2021 Depth Guided Relighting Challenge Track 1: One-to-one relighting (CVPR Workshop 2021) 1 st Solution.

Abstract:

Image relighting aims to recalibrate the illumination setting in an image. In this paper, we propose a deep learning-based method called multi-modal bifurcated network (MBNet) for depth guided image relighting. That is, given an image and the corresponding depth maps, a new image with the given illuminant angle and color temperature is generated by our network. This model extracts the image and the depth features by the bifurcated network in the encoder. To use the two features effectively, we adopt the dynamic dilated pyramid modules in the decoder. Moreover, to increase the variety of training data, we propose a novel data process pipeline to increase the number of the training data. Experiments conducted on the VIDIT dataset show that the proposed solution obtains the 1 st place in terms of SSIM and PMS in the NTIRE 2021 Depth Guide One-to-one Relighting Challenge.

The paper has been accepted by CVPRW 2021.

[Paper Download]

Testing

1. Cloning the repository

$ git clone https://github.com/weitingchen83/NTIRE2021-Depth-Guided-Image-Relighting-MBNet
$ cd NTIRE2021-Depth-Guided-Image-Relighting-MBNet

2. Download the pre-trained model and testing images

Put model weights into model/
Put images into test/
Images contain guide and input folders

3. Testing

    cd code
    python demo.py --input_data_path <'input' folder> --output_dir <output folder> --name <folder name in output folder> --model_path <pre_trained model path>

    Ex:
    python demo.py --input_data_path ../test --output_dir ../submit_result --name test --model_path ../model/weight.pkl

Relit Images

Here is the original images from VIDIT dataset

We also provide the relit images by our MB-Net: val and test.

Another solution (3rd Solution, NTIRE 2021 Depth Guided Relighting Challenge Track 2: Any-to-any relighting) of our team:

https://github.com/dectrfov/NTIRE-2021-Depth-Guided-Image-Any-to-Any-relighting

Citations

Please cite this paper in your publications if it is helpful for your tasks:

Bibtex:

@inproceedings{yang2021multi,
    title     = {Multi-modal Bifurcated Network for Depth Guided Image Relighting},
    author    = {Yang, Hao-Hsiang and Chen, Wei-Ting and Luo, Hao-Lun and Kuo, Sy-Yen},
    booktitle = {Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops (CVPRW)},
    year      = {2021}
}

ntire2021-depth-guided-image-relighting-mbnet's People

Contributors

dectrfov avatar weitingchen83 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ntire2021-depth-guided-image-relighting-mbnet's Issues

Input data

Hey like the repo. As per my usecase I want to change/introduce lighting from a certain angle.

Just wanted to know,

Given the depth information, what does 'ref_center_dis' signifies in the .npy, and how it affects the lighting of the results and how to get that value

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.