forked from mrq/DL-Art-School
Fix bug reporting spsr gan weight
This commit is contained in:
parent
96586d6592
commit
1fe16f71dd
|
@ -840,7 +840,7 @@ class SRGANModel(BaseModel):
|
|||
self.add_log_entry('l_d_fake', l_d_fake_log.detach().item())
|
||||
self.add_log_entry('D_fake', torch.mean(pred_d_fake.detach()))
|
||||
self.add_log_entry('D_diff', torch.mean(pred_d_fake.detach()) - torch.mean(pred_d_real.detach()))
|
||||
if self.spsr_enabled:
|
||||
if self.spsr_enabled and self.l_gan_grad_w > 0:
|
||||
self.add_log_entry('l_d_real_grad', l_d_real_grad.detach().item())
|
||||
self.add_log_entry('l_d_fake_grad', l_d_fake_grad.detach().item())
|
||||
self.add_log_entry('D_fake_grad', torch.mean(pred_d_fake_grad.detach()))
|
||||
|
|
Loading…
Reference in New Issue
Block a user