- This is the official repository of the paper "Deep Coupled Feedback Network for Joint Exposure Fusion and Image Super-Resolution" from IEEE Transactions on Image Processing 2021. [Paper Link][PDF Link]
- We have conducted a live streaming on Extreme Mart Platform, the Powerpoint file can be downloaded from [PPT Link].
- Python >= 3.5
- PyTorch >= 0.4.1 is recommended
- opencv-python
- pytorch-msssim
- tqdm
- Matlab
The training data and testing data is from the [SICE dataset]. Or you can download the datasets from our [Google Drive Link].
- Clone this repository:
git clone https://github.com/ytZhang99/CF-Net.git
- Place the low-resolution over-exposed images and under-exposed images in
dataset/test_data/lr_over
anddataset/test_data/lr_under
, respectively.dataset └── test_data ├── lr_over └── lr_under
- Run the following command for 2 or 4 times SR and exposure fusion:
python main.py --test_only --scale 2 --model model_x2.pth python main.py --test_only --scale 4 --model model_x4.pth
- Finally, you can find the Super-resolved and Fused results in
./test_results
.
- Place HR_groundtruth, HR_over_exposed, HR_under_exposed images for training in the following directory, respectively. (Optional) Validation data can also be placed in
dataset/val_data
.dataset ├── train_data | ├── hr | ├── hr_over | └── hr_under └── val_data ├── gt ├── lr_over └── lr_under
- Open
Prepare_Data_HR_LR.m
file and modify the following lines according to your training commands.Line 5 or 6 : scale = 2 or 4 Line 9 : whether use off-line data augmentation (default = True) [Line 12 <-> Line 17] or [Line 13 <-> Line 18] : producing [lr_over/lr_under] images from [hr_over/hr_under] images
- After the above operations,
dataset/train_data
should be as follows:dataset └── train_data ├── hr ├── hr_over ├── hr_under ├── lr_over └── lr_under
- Place the attached files
dataset.py
andtrain.py
in the same directory withmain.py
. - Run the following command to train the network for scale=2 or 4 according to the training data.
If validation data is added, run the following command to get the best model
python main.py --scale 2 --model my_model python main.py --scale 4 --model my_model
best_ep.pth
.python main.py --scale 2 --model my_model -v python main.py --scale 4 --model my_model -v
- The trained model are placed in the directory
./model/
.
If you find our work useful in your research or publication, please cite our work:
@article{deng2021deep,
title={Deep Coupled Feedback Network for Joint Exposure Fusion and Image Super-Resolution.},
author={Deng, Xin and Zhang, Yutong and Xu, Mai and Gu, Shuhang and Duan, Yiping},
journal={IEEE Transactions on Image Processing: a Publication of the IEEE Signal Processing Society},
year={2021}
}
If you have any question about our work or code, please email yutongzhang@buaa.edu.cn
.