This repository is an official PyTorch implementation of the paper "SR-ITM-GAN: Learning 4k UHD HDR with a Generative Adversarial Network" [Paper] [Axiv]
The uncompressed pdf version could be found here
Huimin Zeng, Xinliang Zhang, Yubo Wang and Zhibin Yu
Architecture of our generator. From top to bottom, we display basic results of Pix2Pix, CycleGAN, Deep-SR-ITM, ESRGAN, our SR-ITM-GAN and HDR GT.- CUDA 9.0 & cuDNN 7.0
- Python 3.6
- Pytorch >= 1.1
- opencv
- lmdb
- pyyaml
Clone this repository using the following command:
git clone https://github.com/ZeldaM1/SR-ITM-GAN.git
cd SR-ITM-GAN
SR-ITM-GAN
├── code
├── data
├── data_scripts
├── metrics
├── models
├── options
├── scripts
├── utils
├── train.py
└── test.py
├── experiments
├── ST-ITM-GAN
├── models
├── training_state
├── val_images
└── training.log
└── tb_logger
- Download our dataset here Google Drive, Baidu Cloud(extract code: ue6f)
- Extract images with following FFMPEG(datasets are saved as .mp4 format for convenience):
ffmpeg -i /path/to/video/dataset.mp4 -q:v 2 /path/to/extract/location/%d.png
- Pack RGB dataset into lmdb format for accelerating.
python ./data_scripts/create_lmdb.py
# Step 1: modify your training datasets in /options/train/train.yml
# Step 2: run the script:
cd codes
python train.py -opt ./options/train/train.yml
cd codes
python test.py -opt ./options/test/test.yml
If you find the Repository useful, please give us a star.:blush:
Using our dataset or code, please cite the following:
@ARTICLE{9212411,
author={H. {Zeng} and X. {Zhang} and Z. {Yu} and Y. {Wang}},
journal={IEEE Access},
title={SR-ITM-GAN: Learning 4K UHD HDR With a Generative Adversarial Network},
year={2020},
volume={8},
number={},
pages={182815-182827},
doi={10.1109/ACCESS.2020.3028584}}
Feel free to contact cenghuimin@stu.ouc.edu.cn
if there's any problem.