Paper: 《SPN2D-GAN: A Night-to-day Image-to-Image Translator Based on Semantic Prior Generator》
├── datasets
├── ACDC
├── rgb_anon_trainvaltest
└── ...
└── gt_trainval
└── ...
└── YOUR_DATASET_NAME
├── trainA
├── xxx.png
├── yyy.png
└── ...
├── trainB
├── zzz.png
├── www.png
└── ...
├── testA
├── aaa.png
├── bbb.png
└── ...
└── testB
├── ccc.png
├── ddd.png
└── ...
trainA
and trainB
, and ACDC-night test set images need to be placed in testA
and testB
> python train.py --dataroot ./datasets/YOUR_DATASET_NAME --name SPN2DGAN
data/unaligned_dataset.py
.> python test.py --dataroot ./datasets/YOUR_DATASET_NAME --name SPN2DGAN
> python fid.py ./testResult/real_day ./testResult/fake_day --gpu 0
/fake_day
folder and the ACDC-test set real-world daytime images need to be placed in the /real_day
folder.Download the ACDC-night dataset.
Our code is inspired by pytorch-CycleGAN.