diff options
| author | Ting-Chun Wang <tcwang0509@berkeley.edu> | 2018-05-30 22:37:25 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-30 22:37:25 -0700 |
| commit | b85c0af0ab22483960650cd1fad3b416ce045801 (patch) | |
| tree | 666f8d1106ceb4067e0f830e77e13cb206786000 /train.py | |
| parent | 736a2dc9afef418820e9c52f4f3b38460360b9f2 (diff) | |
| parent | b2d887e224347e83d3bf2412f100eb0c7a34c802 (diff) | |
Merge pull request #31 from Geopipe/multigpu-disableloss-fix
More robust disabling of disabled losses.
Diffstat (limited to 'train.py')
| -rwxr-xr-x | train.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -61,7 +61,7 @@ for epoch in range(start_epoch, opt.niter + opt.niter_decay + 1): # calculate final loss scalar loss_D = (loss_dict['D_fake'] + loss_dict['D_real']) * 0.5 - loss_G = loss_dict['G_GAN'] + loss_dict['G_GAN_Feat'] + loss_dict['G_VGG'] + loss_G = loss_dict['G_GAN'] + loss_dict.get('G_GAN_Feat',0) + loss_dict.get('G_VGG',0) ############### Backward Pass #################### # update generator weights |
