Skip to content

Commit

Permalink
Merge pull request #68 from torchgan/ap/image-patch-1
Browse files Browse the repository at this point in the history
Fix logging of incorrect image names
  • Loading branch information
avik-pal committed Dec 15, 2018
2 parents cb5b512 + 556ed27 commit 6dd681e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions torchgan/logging/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,6 @@ def __call__(self, trainer, **kwargs):
image = generator(*self.test_noise[pos])
image = torchvision.utils.make_grid(image)
super(ImageVisualize, self).__call__(trainer, image, model, **kwargs)
self.step -= 1
pos = pos + 1
self.step += 1 if pos > 0 else 0

0 comments on commit 6dd681e

Please sign in to comment.