Skip to content

Commit 5e159f5

Browse files
committed
fix for horizontal flip probability, thanks to @xiankgx
1 parent e7cbe03 commit 5e159f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stylegan2_pytorch/stylegan2_pytorch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def __getitem__(self, index):
387387
# augmentations
388388

389389
def random_hflip(tensor, prob):
390-
if prob > random():
390+
if prob < random():
391391
return tensor
392392
return torch.flip(tensor, dims=(3,))
393393

stylegan2_pytorch/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.8.8'
1+
__version__ = '1.8.9'

0 commit comments

Comments
 (0)