Hi
Thank you for posting this wonderful code but I am wondering what is the intuition behind the two losses loss_idt_A and loss_idt_B mentioned in the cycle_gan_model.py file? By reading through the implementation it seems like the loss is supposed to discourage the generator to translate the image in case it is already in the correct domain. Like if the image is in domain B then G_A should act as identity and not try to translate it?
Though I understand the intuition behind this loss, I have several questions pertaining to it
[1] why exactly is the loss relevant? since it is a controlled training setup where we know the images are coming from which domain, why would we send domain B images through G_A?
[2] Is this loss relevant to the testing time when the domain of the image is unknown?
[3] Is the loss mentioned anywhere in the paper?
[4] Is the loss helpful in generating the images? has any benchmarking been done for this?
Thanks again for the code! Hoping to get the doubts cleared soon!
Devraj
I think the identity loss is used to preserve the color and prevent reverse color in the result.
@devraj89 This is a great question. For your questions:
Most helpful comment
@devraj89 This is a great question. For your questions:
9 in the paper illustrate the difference. In general, it can help bette preserve the content if that is your priority.