Algorithm 1: Modified Algorithm Training Loop Pseudocode | |
1: | Draw a minibatch of samples {XAB(1),..., xAB(m)} from domain X |
2: | Draw a minibatch of samples {Y(1),..., y(m)} from domain Y |
3: | Compute the discriminator loss on real images: + |
4: | Compute the discriminator loss on fake images: + |
5: | Update the PatchGAN discriminator |
6: | Apply Attention to the Generator ) |
7: | Compute the B → A generator loss: |
8: | Compute the A → B generator loss: |
9: | Update the generator |