Official PyTorch implementation of Exposure Bracketing is All You Need
In this work, we propose to utilize bracketing photography to unify image restoration and enhancement tasks, including image denoising, deblurring, high dynamic range reconstruction, and super-resolution. The paper is as follows:
Exposure Bracketing is All You Need for Unifying Image Restoration and Enhancement Tasks
Zhilu Zhang, Shuohao Zhang, Renlong Wu, Zifei Yan, Wangmeng Zuo
Harbin Institute of Technology, China
arXiv
We organized a Bracketing Image Restoration and Enhancement Challenge on NTIRE Workshop of CVPR 2024. The challenge report is as follows:
NTIRE 2024 Challenge on Bracketing Image Restoration and Enhancement: Datasets Methods and Results
Zhilu Zhang$^1$ , Shuohao Zhang$^1$ , Renlong Wu$^1$ , Wangmeng Zuo$^1$ , Radu Timofte$^2$ , et al.$^1$ Harbin Institute of Technology, China$^2$ University of Würzburg, Germany
Challenge Report | Slides | Video | Poster
-
2024-06-02
: The training, inference and evaluation codes for real-world dataset have been released. -
2024-05-01
: The training, inference and evaluation codes for synthetic dataset have been released. -
2024-03-26
: The synthetic dataset has been released. -
2024-02-05
: The codes, pre-trained models, and ISP for the Bracketing Image Restoration and Enhancement Challenge are released in NTIRE2024 folder. (The codes have been restructured. If there are any problems with the codes, please contact us.) -
2024-02-04
: We organize the Bracketing Image Restoration and Enhancement Challenge in NTIRE 2024 (CVPR Workshop), including Track 1 (BracketIRE Task) and Track 2 (BracketIRE+ Task). Details can bee seen in NTIRE2024/README.md. Welcome to participate!
It is highly desired but challenging to acquire high-quality photos with clear content in low-light environments. Although multi-image processing methods (using burst, dual-exposure, or multi-exposure images) have made significant progress in addressing this issue, they typically focus on specific restoration or enhancement problems, and do not fully explore the potential of utilizing multiple images. Motivated by the fact that multi-exposure images are complementary in denoising, deblurring, high dynamic range imaging, and super-resolution, we propose to utilize exposure bracketing photography to unify image restoration and enhancement tasks in this work. Due to the difficulty in collecting real-world pairs, we suggest a solution that first pre-trains the model with synthetic paired data and then adapts it to real-world unlabeled images. In particular, a temporally modulated recurrent network (TMRNet) and self-supervised adaptation method are proposed. Moreover, we construct a data simulation pipeline to synthesize pairs and collect real-world images from 200 nighttime scenarios. Experiments on both datasets show that our method performs favorably against the state-of-the-art multi-image processing ones.
- Python 3.9 and PyTorch 1.12.
- opencv, numpy, Pillow, timm, tqdm, scikit-image and tensorboardX.
- We provide detailed dependencies in
requirements.txt
Please download the data from Baidu Netdisk (Chinese: 百度网盘).
- BracketIRE task: https://pan.baidu.com/s/1Jy8G36Njg68UbzsbOEKdZQ?pwd=v4nn
- BracketIRE+ task: https://pan.baidu.com/s/1AKHppSl8ejKR8a8-tnVigA?pwd=kvsd
- Real-World dataset: https://pan.baidu.com/s/1PYCsRsKEs-tJcIYz_5Mbvg?pwd=7tmf
- Link: https://pan.baidu.com/s/10bQxDHaZ0sKB87tRooIewg?pwd=wtdg
- Place
spynet
,syn
,syn_plus
,real
andreal_plus
folders inckpt
folder.
Note: If you cannot get a Baidu account, please use TeraBox and click https://terabox.com/s/1nZzGx4Anlp0syXcRhd6xqw to download.
-
BracketIRE task
- Modify
dataroot
- Run
sh ./syn_bash/train_syn.sh
- Modify
-
BracketIRE+ task
- Modify
dataroot
andload_path
- Run
sh ./syn_bash/train_synplus.sh
- Modify
-
BracketIRE task
- Modify
dataroot
andname
- Run
sh ./syn_bash/test_syn.sh
- Modify
-
BracketIRE+ task
- Modify
dataroot
andname
- Run
sh ./syn_bash/test_synplus.sh
- Modify
-
BracketIRE task
- Modify
dataroot
- Run
sh ./real_bash/train_real.sh
- Modify
-
BracketIRE+ task
- Modify
dataroot
- Run
sh ./real_bash/train_realplus.sh
- Modify
-
BracketIRE task
- Modify
dataroot
andname
- Run
sh ./real_bash/test_real.sh
- Modify
-
BracketIRE+ task
- Modify
dataroot
andname
- Run
sh ./real_bash/test_realplus.sh
- Modify
- Note that the evaluation method is different from that of 'Bracketing Image Restoration and Enhancement Challenges on NTIRE 2024'.
- Here, we exclude invalid pixels around the image for evaluation, which is more reasonable.
- Related explanations can be found in Appendix B in our revised paper.
- We recommend that you use the new evaluation method in your future work.
- You can specify which GPU to use by
--gpu_ids
, e.g.,--gpu_ids 0,1
,--gpu_ids 3
,--gpu_ids -1
(for CPU mode). In the default setting, all GPUs are used. - You can refer to options for more arguments.
- BracketIRE task
- BracketIRE+ task
If you find it useful in your research, please consider citing:
@article{BracketIRE,
title={Exposure Bracketing is All You Need for Unifying Image Restoration and Enhancement Tasks},
author={Zhang, Zhilu and Zhang, Shuohao and Wu, Renlong and Yan, Zifei and Zuo, Wangmeng},
journal={arXiv preprint arXiv:2401.00766},
year={2024}
}
@inproceedings{ntire2024bracketing,
title={{NTIRE} 2024 Challenge on Bracketing Image Restoration and Enhancement: Datasets, Methods and Results},
author={Zhang, Zhilu and Zhang, Shuohao and Wu, Renlong and Zuo, Wangmeng and Timofte, Radu and others},
booktitle={CVPR Workshops},
year={2024}
}
This work is also a continuation of our previous works, i.e., SelfIR (NeurIPS 2022) and SelfHDR (ICLR 2024). If you are interested in them, please consider citing:
@article{SelfIR,
title={Self-supervised Image Restoration with Blurry and Noisy Pairs},
author={Zhang, Zhilu and Xu, Rongjian and Liu, Ming and Yan, Zifei and Zuo, Wangmeng},
journal={NeurIPS},
year={2022}
}
@inproceedings{SelfHDR,
title={Self-Supervised High Dynamic Range Imaging with Multi-Exposure Images in Dynamic Scenes},
author={Zhang, Zhilu and Wang, Haoyu and Liu, Shuai and Wang, Xiaotao and Lei, Lei and Zuo, Wangmeng},
booktitle={ICLR},
year={2024}
}