aitorzip / PyTorch-CycleGAN

A clean and readable Pytorch implementation of CycleGAN
https://arxiv.org/abs/1703.10593
GNU General Public License v3.0
1.19k stars 283 forks source link

about identity loss #39

Closed karim-moon closed 2 years ago

karim-moon commented 2 years ago

Hi, thank you for making this repository and it makes me more easier to learn CycleGAN But seeing this train code, there is a wandering thing about identity loss

At the paper, there is no identity loss. So what kind of role does identity loss have in this code?

Thanks

karim-moon commented 2 years ago

I asked something stupid, To make sure the coordinate real image and converted image at the latent space, it used real image identity mapping. I found original repository about identity mapping code Thanks