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

Out of memory, even only batch size = 4 #35

Closed
vince2003 opened this issue Jun 6, 2020 · 3 comments
Closed

Out of memory, even only batch size = 4 #35

vince2003 opened this issue Jun 6, 2020 · 3 comments

Comments

@vince2003
Copy link

Hi Chrischoy,
Thank you for your great work. However, when I train on S3DIS with the batch size is only 4, it has out of memory problem. My GPU: titan v100(12G)
outofmemory

You can see the figure. When the training is at epoch 15, it seems the leak of memory. Can you fix that error?
Thank you!

@chrischoy
Copy link
Owner

Theres no memory leakage. Thank you

@vince2003
Copy link
Author

So, what is the error? How can I fix it? Thank you

@chrischoy
Copy link
Owner

There could be multiple reasons, the pytorch memory manager could have potentially fragmented the GPU too much and couldn't allocate larger space.
Also, Stanford dataset contains extremely large scenes (e.g. auditorium) and random crops might have cropped chunk too large for the memory.

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