Closed justin4ai closed 4 months ago
Thank you for raising this issue; that's my fault, I changed the API name in 0.17.
Although now that I'm looking more closely, it looks like StyleNAT doesn't use FNA, even though the flags are being set. I'll push a temporary fix to unblock you right now and will wait for @stevenwalton to chime in.
StyleNAT should be able to use FNA for inference, but training gets complicated because FNA doesn't implement the backward pass for RPB.
I close this issue since at least the error is fixed although there are some others remaining. Please check conversation in your PR!
@alihassanijr thanks for handling this so quickly.
I think FNA was still in alpha when we did this so it wasn't fully implemented or maybe there was miscommunication between us. We can fully switch to FNA. We can sync outside this chat.
@justin4ai, thanks for your interest in StyleNAT. We're always interested to see what people do with it, and don't hesitate to reach out if you're running into issues. Some of the param choices can be tricky. If you're doing face-swapping (as your profile suggests) the attention maps will be helpful for debugging and finding artifacts.
@stevenwalton Thanks for your suggestion! I really love your works. Actually I'm trying to replace mere attention module with your HydraNAT module in absorbing diffusion sampler for facial image generation! And this StyleNAT helps me a lot as both a reference for my trial and itself. I'd like to share my work if it finishes! Thank you so much anyways :)
Great to hear! You'll need a bit more complex kerneling for things other than faces. Though this will play a bit differently in diffusion, but it should work fine.
Hello, I'm trying to inference with your pretrained model. But I encounter
ImportError: cannot import name 'enable_fused_na' from 'natten'
error. I tried to change torch & natten versions but the same error occurs again and again.Also the following is my pip freeze output.
The problematic code is as follows:
And I verified there are no such enable_fused_na() and so on.
Thanks for your great project, I hope I could hear from you.
Best, Junyeong Ahn