Git Product home page Git Product logo

r2rnet's Introduction

R2RNet

Official code of "R2RNet: Low-light Image Enhancement via Real-low to Real-normal Network." Jiang Hai, Zhu Xuan, Ren Yang, Yutong Hao, Fengzhu Zou, Fang Lin, and Songchen Han. [journal][arxiv]

Citation

If you use this code or dataset from the paper for your research, please cite our paper:

@article{hai2023r2rnet,
  title={R2rnet: Low-light image enhancement via real-low to real-normal network},
  author={Hai, Jiang and Xuan, Zhu and Yang, Ren and Hao, Yutong and Zou, Fengzhu and Lin, Fang and Han, Songchen},
  journal={Journal of Visual Communication and Image Representation},
  volume={90},
  pages={103712},
  year={2023}
}

Network Architecture

fig3 The proposed R2RNet architecture. Our network consists of three subnets: a Decom-Net, a Denoise-Net, and a Enhance-Net, which perform decomposing, denoising, contrast enhancement and detail preservation, respectively. The Decom-Net decomposes the low-light image into an illumination map and a reflectance map based on the Retinex theory. The Denoise-Net aims to suppress the noise in the reflectance map. Subsequently, the illumination map obtained by Decom-Net and the reflectance map obtained by Denoise-Net are sent to the Relight-Net to improve image contrast and reconstruct details. fig4 The proposed Relight-Net architecture. The Relight-Net consists of two modules: Contrast Enhancement Module (CEM) and Detail Reconstruction Module (DRM). CEM uses spatial information for contrast enhancement and DRM uses frequency information to preserve image details.

Pytorch

This is a Pytorch implementation of R2RNet.

Requirements

  1. Python 3.x
  2. Pytorch == 1.9.0 (We used torch.fft.fftn(ifftn) and torch.fft.rfftn(irfftn) in our code).

Dataset

We have fixed the image naming bugs, you can download the LSRW dataset from: https://pan.baidu.com/s/1XHWQAS0ZNrnCyZ-bq7MKvA (code: wmrr).

(Note: Some outdoor image pairs are not pixel-to-pixel aligned, there may be some local offsets between two images. In fact, we think that this has a limited impact on the LLIE task. If you think it has a great impact on your task, please choose the appropriate training strategy and evaluation metric by yourself.)

Pre-trained model

You can download pre-trained models from:https://pan.baidu.com/s/1fYBAvzCuuzmaFmDDAlsCWA (code: wmr1), then put the pre-trained models into Decom, Denoise, Relight, respectively.

The pre-trained VGG-16 model can be downloaded from:https://pan.baidu.com/s/1kf1uLjLaAMbfji0fPZKtEQ (code: wmrr).

Testing Usage

python predict.py

Training Usage

python trian.py

Reference

Code borrows heavily from https://github.com/aasharma90/RetinexNet_PyTorch.

r2rnet's People

Contributors

jianghaiscu avatar freebutuselesssoul avatar

Stargazers

 avatar Yongsong.H avatar doan.nguyenngoc avatar 木方治 avatar  avatar  avatar  avatar Linxin Zhang avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Xuanqi Zhang avatar  avatar ZhangJinjing avatar Zhicheng avatar Hopital avatar  avatar  avatar  avatar  avatar  avatar ZXiaolon avatar  avatar Big-faced Cat avatar Huiming Jiang avatar bigzhang avatar  avatar  avatar zhangyihang avatar  avatar Shuyuan Wen avatar Amelia avatar  avatar Daxing avatar Suhw avatar  avatar  avatar Yuang Ai avatar Umit Kacar, PhD avatar  avatar  avatar 李大鹅 avatar Dylan avatar sunweice avatar  avatar  avatar  avatar SINHAO22 avatar 缪敏 avatar  avatar YaoYu avatar  avatar  avatar  avatar  avatar  avatar  avatar xavier liu avatar Jason Lee avatar  avatar  avatar  avatar Ooi Xin Peng avatar  avatar  avatar  avatar liuqixu avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar 申凌皓 (Shen Linghao) avatar  avatar  avatar  avatar  avatar  avatar Ziwen Li avatar  avatar  avatar Usama Altaf Zahid avatar  avatar Jensen J. ZHANG avatar Sun Aries avatar  avatar 爱可可-爱生活 avatar  avatar Stanley Salvatierra avatar Katsuya Hyodo avatar  avatar

Watchers

 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.