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

Method forward

models/dcl_model.py:162–169  ·  view source on GitHub ↗

Run forward pass; called by both functions and .

(self)

Source from the content-addressed store, hash-verified

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

Callers 2

optimize_parametersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected