Run forward pass; called by both functions and .
(self)
| 160 | self.image_paths = input['A_paths' if AtoB else 'B_paths'] |
| 161 | |
| 162 | def forward(self): |
| 163 | """Run forward pass; called by both functions <optimize_parameters> and <test>.""" |
| 164 | self.fake_B = self.netG_A(self.real_A) # G_A(A) |
| 165 | self.fake_A = self.netG_B(self.real_B) # G_B(B) |
| 166 | |
| 167 | if self.opt.nce_idt: |
| 168 | self.idt_A = self.netG_A(self.real_B) |
| 169 | self.idt_B = self.netG_B(self.real_A) |
| 170 | |
| 171 | def backward_D_basic(self, netD, real, fake): |
| 172 | """Calculate GAN loss for the discriminator |
no outgoing calls
no test coverage detected