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

train.lua error , cuda runtime error (2) : out of memory #199

Open
MozhdehDokhani opened this issue Oct 29, 2018 · 1 comment
Open

train.lua error , cuda runtime error (2) : out of memory #199

MozhdehDokhani opened this issue Oct 29, 2018 · 1 comment

Comments

@MozhdehDokhani
Copy link

MozhdehDokhani commented Oct 29, 2018

Hi,
After downloading MS COCO dataset and run prepo.py, when I try to train, the following error appears:

THCudaCheck FAIL file=/tmp/luarocks_cutorch-scm-1-5309/cutorch/lib/THC/generic/THCStorage.cu line=66 error=2 : out of memory
/home/linux/torch/install/bin/luajit: /home/linux/torch/install/share/lua/5.1/torch/File.lua:351: cuda runtime error (2) : out of memory at /tmp/luarocks_cutorch-scm-1-5309/cutorch/lib/THC/generic/THCStorage.cu:66

Any solutions? :(

P.S when I run it on CPU mode by passing the parameter -gpuid -1, it starts training. But I think it never ends!

@MozhdehDokhani
Copy link
Author

It was due to the gpu memory size. I run it on some othe computer with higher gpu memory size.
Close the issue

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

1 participant