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 GPU memory #12

Closed
lzgahbb opened this issue Nov 13, 2018 · 4 comments
Closed

Out of GPU memory #12

lzgahbb opened this issue Nov 13, 2018 · 4 comments

Comments

@lzgahbb
Copy link

lzgahbb commented Nov 13, 2018

Hello Hao,
Could tell me how many GPU memories will be used when you trained this model? I use Titan xp will cause out of memory when batch size larger than 4, but when I set batch size 4, it would meet another error when executes hard sample mining, the reason is all the 4 images from the sample identity. By the way, I trained with market1501.

@lzgahbb lzgahbb closed this as completed Nov 13, 2018
@lzgahbb
Copy link
Author

lzgahbb commented Nov 14, 2018

Hello Hao,
Could tell me how many GPU memories will be used when you trained this model? I use Titan xp will cause out of memory when batch size larger than 4, but when I set batch size 4, it would meet another error when executes hard sample mining, the reason is all the 4 images from the sample identity. By the way, I trained with market1501.

It still out of memory when I roll back to pytorch 0.4.0

@lzgahbb lzgahbb reopened this Nov 14, 2018
@michuanhaohao
Copy link
Owner

@lzgahbb I think there exist some problems in your machine. The default batch size is 32, and the GPU memory usage is 3~4 GB for Resnet50. Did you run the code in the docker? If so, you should check the share memory of your docker container.

@lzgahbb
Copy link
Author

lzgahbb commented Nov 14, 2018

Thanks, I solved this problem by retring your code in a new directory.

@lzgahbb lzgahbb closed this as completed Nov 14, 2018
@saxg
Copy link

saxg commented May 22, 2019

I have faced the problem same as that you said, what is the meaning of the "in a new directoty"

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