本代码根据论文《Deep Photo Enhancer: Unpaired Learning for Image Enhancement from Photographs with GANs》。
原作者代码库:nothinglo/Deep-Photo-Enhancer
- Python 3.6
- CUDA 10.0
- 具体见requirements.txt,使用如下命令安装依赖:
pip install -r requirements.txt
Expert-C on MIT-Adobe FiveK dataset
- PreTrain和Train中的参数可以修改
- 在SourceCode下要新建多个文件夹,分为:
- images_LR:用来存放数据集
- Expert-C
- input
- 上述两文件夹中都需要新建下面三个文件夹
- Testing
- Training1
- Training2
- model:用来存放所有训练产生的文件,其下还需新建:
- gt_images
- 1Way
- 2Way
- input_images
- 1Way
- 2Way
- pretrain_checkpoint
- 1Way
- 2Way
- pretrain_images
- 1Way
- 2Way
- test_images
- 1Way
- 2Way
- train_checkpoint
- 1Way
- 2Way
- train_images
- 1Way
- 2Way
- train_test_images
- 1Way
- 2Way
- gt_images
- models:用来存放log_PreTraining.txt
- 训练后的gan1_pretrain_XXx_xxx.pth需要放在根目录下
- images_LR:用来存放数据集
- Pretrain: 3H55M 8H45M 9H25M
- Train: 2H45M 2H49M 3H03M 5H38M(2Way) 4H45M(2Way)
- There may be a problem in computing the value of PSNR or not. It needs to be proved.