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

How to implement the most efficient convolution #336

Open
anguoyang opened this issue Nov 2, 2022 · 2 comments
Open

How to implement the most efficient convolution #336

anguoyang opened this issue Nov 2, 2022 · 2 comments

Comments

@anguoyang
Copy link

hi @rosinality , thank you for your great contribution, the result is amazing, but the huge input/output channels(1024, 512, etc) make the convolution heavy and slow, how could we implement lightweight convolutions to slim the model? thank you.

Btw, there are some mobile/lightweight open sources, like MobileStyleGAN, anycost-gan, etc, but almost all these approaches are trying to decrease the channels, but unfortunately, this will also decrease the image quality, I just wonder if we could make a super lightweight convolution without decreasing the channels but still maintain similar results with StyleGAN2.

@rosinality
Copy link
Owner

You can try depthwise convolutions, but generally depthwise convolution requires even more channels than standard convolutions.
I think you can try approaches like FastGAN.

@anguoyang
Copy link
Author

Thank you for your kind help, yes, depthwise separable convolution maybe need even more channels, and it is difficult to replace ModulatedConv2d. Let me try FastGAN

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