VITA-Group / EnlightenGAN

[IEEE TIP] "EnlightenGAN: Deep Light Enhancement without Paired Supervision" by Yifan Jiang, Xinyu Gong, Ding Liu, Yu Cheng, Chen Fang, Xiaohui Shen, Jianchao Yang, Pan Zhou, Zhangyang Wang
Other
918 stars 200 forks source link

opt.patchD_3? #92

Closed Pzy-ss closed 2 years ago

Pzy-ss commented 3 years ago

Your EnlightenGAN is enlightening and the source code is also elegant! But the variable _opt.patchD3 makes me confused. What does it mean? It seems that multiple patches instead of one are taken into consideration only if _opt.patchD3 larger than 0. Could you please give a simple explanation about the variable? Appreciate!

yifanjiang19 commented 3 years ago

It is designed to set the local discriminator. Check here https://github.com/VITA-Group/EnlightenGAN/blob/d7500af765a11944c2bdb0ca40ffcfcf76c7928e/models/single_model.py#L214