CyclicGAN
INTRODUCTION
Image to image conversion is a really hard task to do when you don't have any specific output label image.
There are also other approaches as follows:
Unpair image to image translation can translate one image to another but the model can be trained on a specific translation.
Neural style transfer translates input images on a specific painting or style. but it can not convert from a style to back to the original.
Using cyclic GAN, an image can convert to any other style passed in the model at that time as a reference style image. and the model also helps to convert back from a style to original by just changing the location of passing images to the model.
WORK OF CYCLIC-GAN
The main goal of the cyclic model is to map image A to image B and vice versa.
Block Diagram
Figure 1: A cycle block digram for image A Figure 2 shows that a cycle of image B passed to both generators to try to get a similar image to B with the training of both generators and one discriminator. Generator X helps to map image B to image A and discriminator helps to correct generated image from Gy only.
Figure 2: A cycle block diagram for image B
Figure 2 shows that a cycle of image B passed to both generators to try to get a similar image to B with the training of both generators and one discriminator. Generator X helps to map image B to image A and discriminator helps to correct generated image from Gy only.
Cyclic consistency loss can help to understand the approach to create cyclic output for both images. For more detail, one can check the cyclic consistency loss in the loss function section.
Architecture
Discriminator:
Figure 3: Discriminator Model
Generator:
Loss functions
Adversarial loss:
Cyclic consistency loss:
The CyclicGAN has two auto-encoders that are joint to each other.
Both autoencoders have an internal structure such that it maps image A to itself using one cycle shown in figure 1. Image B cyclic output will be the translation of image A into image B domain.
Comments
Post a Comment