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

memory format warning when using DiffAugment #31

Closed
STomoya opened this issue Sep 20, 2020 · 2 comments · Fixed by #33
Closed

memory format warning when using DiffAugment #31

STomoya opened this issue Sep 20, 2020 · 2 comments · Fixed by #33

Comments

@STomoya
Copy link
Owner

STomoya commented Sep 20, 2020

The warning bellow is produced when using Differentiable Augmentation(DiffAugment).

[W TensorIterator.cpp:924] Warning: Mixed memory format inputs detected while calling the operator. The operator will output channels_last tensor even if some of the inputs are not in channels_last format. (function operator())

I am guessing this only happens in PyTorch ver1.6.0 or higher.
PR#37968@pytorch/pytorch

DiffAugment is an augmentation method, therefore I believe this will not affect the results much.

@STomoya STomoya mentioned this issue Sep 29, 2020
@STomoya STomoya linked a pull request Sep 29, 2020 that will close this issue
@STomoya
Copy link
Owner Author

STomoya commented Sep 29, 2020

Notifications about kornia ver. DiffAugment

pros

  • no warning

cons

  • using nightly version of kornia.
  • when augmenting colors in kornia, the values are clipped to fit between [0, 1], but the original implementation does not clip values.
    I don't believe this will cause a huge problem, but use the original one with PyTorch < 1.6.0 if it makes you nervous.

@STomoya
Copy link
Owner Author

STomoya commented Sep 29, 2020

Also it shouldn't be used to StyleGAN, because the original implementation doesn't use tanh before the output of the generator for each resolution. (not in my case though...)

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

Successfully merging a pull request may close this issue.

1 participant