MCPcopy Create free account
hub / github.com/JunlinHan/DCLGAN / forward

Method forward

models/simdcl_model.py:180–187  ·  view source on GitHub ↗

Run forward pass; called by both functions and .

(self)

Source from the content-addressed store, hash-verified

178 self.image_paths = input['A_paths' if AtoB else 'B_paths']
179
180 def forward(self):
181 """Run forward pass; called by both functions <optimize_parameters> and <test>."""
182 self.fake_B = self.netG_A(self.real_A) # G_A(A)
183 self.fake_A = self.netG_B(self.real_B) # G_B(B)
184
185 if self.opt.nce_idt:
186 self.idt_A = self.netG_A(self.real_B)
187 self.idt_B = self.netG_B(self.real_A)
188
189 def backward_D_basic(self, netD, real, fake):
190 """Calculate GAN loss for the discriminator

Callers 2

optimize_parametersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected