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

When use batch_size>2 #23

Closed
zhongtao93 opened this issue Oct 13, 2021 · 9 comments
Closed

When use batch_size>2 #23

zhongtao93 opened this issue Oct 13, 2021 · 9 comments

Comments

@zhongtao93
Copy link

Hi, thank you for sharing code! As the default batch_size=2, training is fine. But when use batch_size = 8 , get error as bellow:
image
Hoping for your reply!

@bes-dev
Copy link
Owner

bes-dev commented Oct 13, 2021

@zhongtao93 it is an out of memory error

@zhongtao93
Copy link
Author

But I have four 32G GPUs, it's also not work when use --gpus 4

@bes-dev
Copy link
Owner

bes-dev commented Oct 13, 2021

@zhongtao93 try to decrease batch size

@zhongtao93
Copy link
Author

zhongtao93 commented Oct 14, 2021

Thank you, decrease to 3 is work. Another question, the Prediction head of MobileStyleGAN is only useful for training, when model forward, those part can skip. It's correct?

@bes-dev
Copy link
Owner

bes-dev commented Oct 14, 2021

@zhongtao93 auxiliary heads will be skipped when MobileStyleGAN converts to ONNX or CoreML

@zhongtao93
Copy link
Author

Thank you. Do you think this model is likely to run realtime with the output size of 256x256 on the mobile phone? After reduce the number of channels or other Pruning method.

@bes-dev
Copy link
Owner

bes-dev commented Oct 15, 2021

@zhongtao93 it works on iPhone 12 for 4fps with the output size of 1024x1024, we didn't test for less resolution.

@zhongtao93
Copy link
Author

Thank you! I will continue to study the work of improving speed.

@FrankyCao
Copy link

Thank you. Do you think this model is likely to run realtime with the output size of 256x256 on the mobile phone? After reduce the number of channels or other Pruning method.

Hi,I have a same question.Did you have any results?

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

3 participants