Skip to content

Commit

Permalink
Update train_sagan.py
Browse files Browse the repository at this point in the history
Fix the error
  • Loading branch information
avalonstrel authored Apr 25, 2019
1 parent 5fe132f commit 22455da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train_sagan.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def validate(netG, netD, GANLoss, ReconLoss, DLoss, optG, optD, dataloader, epoc
imgs = (imgs / 127.5 - 1)
# mask is 1 on masked region
# forward
coarse_imgs, recon_imgs, attention = netG(imgs, masks)
coarse_imgs, recon_imgs = netG(imgs, masks)

complete_imgs = recon_imgs * masks + imgs * (1 - masks)

Expand Down

0 comments on commit 22455da

Please sign in to comment.