Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: random_hflip function #273

Closed
xiankgx opened this issue Jun 29, 2022 · 1 comment
Closed

Bug: random_hflip function #273

xiankgx opened this issue Jun 29, 2022 · 1 comment

Comments

@xiankgx
Copy link

xiankgx commented Jun 29, 2022

With ref to: https://github.com/lucidrains/stylegan2-pytorch/blob/master/stylegan2_pytorch/stylegan2_pytorch.py#L389-L392

def random_hflip(tensor, prob):
    if prob > random():
        return tensor
    return torch.flip(tensor, dims=(3,))

Should prob be augment probability or non-augment probability? If we set prob=1.0, then we do NOT do horizontal flip 100% of the time.

@xiankgx xiankgx changed the title Bug: Bug: random_hflip function Jun 29, 2022
@lucidrains
Copy link
Owner

@xiankgx oh shoot, yes you are right 🙏 0588213

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants