Skip to content

Commit

Permalink
make random crop in augmentation a bit less severe
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Aug 23, 2020
1 parent 40168eb commit 162d592
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name = 'stylegan2_pytorch',
packages = find_packages(),
scripts=['bin/stylegan2_pytorch'],
version = '0.20.0',
version = '0.20.1',
license='GPLv3+',
description = 'StyleGan2 in Pytorch',
author = 'Phil Wang',
Expand Down
2 changes: 1 addition & 1 deletion stylegan2_pytorch/stylegan2_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def __init__(self, D, image_size):

def forward(self, images, prob = 0., detach = False):
if random() < prob:
random_scale = random_float(0.5, 0.9)
random_scale = random_float(0.75, 0.95)
images = random_hflip(images, prob=0.5)
images = random_crop_and_resize(images, scale = random_scale)

Expand Down

0 comments on commit 162d592

Please sign in to comment.