-
Notifications
You must be signed in to change notification settings - Fork 16
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
RuntimeError:CUDA out of memory #8
Comments
Yes you can try removing the attention to see if that gets rid of the error. Whats the image size you are working with ? Adding few other things that will reduce the compute requirement in case you are working with the default config. |
Thank you for your advice,I use img with size 900*1600. That consume huge memory when encounter attention layer. |
Got it. Yeah try with a batch size of 1 first. |
Thank you ,I will try as you told. |
Can I remove the attention layer for high resolution img?
The text was updated successfully, but these errors were encountered: