-
Notifications
You must be signed in to change notification settings - Fork 11
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
natten2d function requires kernel size #8
Comments
NATTEN functions take in kernel size as well as dilation since 0.14.6. The change in signature breaks Hydra-NA, which calls those functions directly instead of using the nn.Module. This fixes SHI-Labs#8 . Refs: * https://github.com/SHI-Labs/NATTEN/releases/tag/v0.14.6 * https://github.com/SHI-Labs/NATTEN/blob/main/CHANGELOG.md#0146---2023-03-21 Same change in other repositories using NATTEN: * huggingface/transformers#22229 * huggingface/transformers#22298
Thank you for your interest and bringing this to our attention. Yes, the issue is that NATTEN's function calls have a slightly different signature since v0.14.5, which is the release that added torch 2.0 support. |
Thanks @alihassanijr @lzy00codeforfun let us know if you have any additional issues. Please reopen if this did not resolve things. I also will note that you should probably see some speed improvements if using pytorch 2.0 but we have not tested StyleNAT under those settings. We are still using the same versioning as the paper. Thanks for bringing this to our attention! |
Hi there,
Thanks for the great work! When I try to evaluate the FFHQ 256x256 generation, it seems the natten2d function requires kernel_size to be specified, both natten2dqkrpb and natten2dav. However, this is not specified in the code
models/stylenat.py
. I used this command to install the natten package,pip3 install natten -f https://shi-labs.com/natten/wheels/cu118/torch2.0.0/index.html
. Is this because the code isn't compatible with this natten version? Do you have any idea of why this happens or what's the missing value here?Thanks!
The text was updated successfully, but these errors were encountered: