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

RuntimeError: CUDA error: out of memory #10

Closed
guangzhao17 opened this issue Aug 6, 2019 · 2 comments
Closed

RuntimeError: CUDA error: out of memory #10

guangzhao17 opened this issue Aug 6, 2019 · 2 comments

Comments

@guangzhao17
Copy link

run:
python main.py --dataset my_dataset --light True
error:
RuntimeError: CUDA error: out of memory

I had sucessfully installed pytorch with GPU on computer.


import torch
torch.cuda.is_available()
True


This works well,and I find no error when running other pytorch codes.

@znxlwm
Copy link
Owner

znxlwm commented Aug 7, 2019

Above error means, your GPU memory is insufficient for training.

We trained model without light flag using V100 32GB, with light flag using 1080Ti 11GB.

Thank you

@znxlwm znxlwm closed this as completed Aug 7, 2019
@w32zhong
Copy link

Same error here, I solved it by setting a lower base channel number than the default one (via --ch).

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