MCPcopy Create free account
hub / github.com/albertpumarola/GANimation / get_current_errors

Method get_current_errors

models/ganimation.py:317–336  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

315 torch.sum(torch.abs(mat[:, :, :-1, :] - mat[:, :, 1:, :]))
316
317 def get_current_errors(self):
318 loss_dict = OrderedDict([('g_fake', self._loss_g_fake.data[0]),
319 ('g_cond', self._loss_g_cond.data[0]),
320 ('g_mskd_fake', self._loss_g_masked_fake.data[0]),
321 ('g_mskd_cond', self._loss_g_masked_cond.data[0]),
322 ('g_cyc', self._loss_g_cyc.data[0]),
323 ('g_rgb', self._loss_rec_real_img_rgb.data[0]),
324 ('g_rgb_un', self._loss_g_unmasked_rgb.data[0]),
325 ('g_rgb_s', self._loss_g_fake_imgs_smooth.data[0]),
326 ('g_m1', self._loss_g_mask_1.data[0]),
327 ('g_m2', self._loss_g_mask_2.data[0]),
328 ('g_m1_s', self._loss_g_mask_1_smooth.data[0]),
329 ('g_m2_s', self._loss_g_mask_2_smooth.data[0]),
330 ('g_idt', self._loss_g_idt.data[0]),
331 ('d_real', self._loss_d_real.data[0]),
332 ('d_cond', self._loss_d_cond.data[0]),
333 ('d_fake', self._loss_d_fake.data[0]),
334 ('d_gp', self._loss_d_gp.data[0])])
335
336 return loss_dict
337
338 def get_current_scalars(self):
339 return OrderedDict([('lr_G', self._current_lr_G), ('lr_D', self._current_lr_D)])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected