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 #3

Open
ReekiLee opened this issue Jan 21, 2021 · 1 comment
Open

RuntimeError: CUDA error: out of memory #3

ReekiLee opened this issue Jan 21, 2021 · 1 comment

Comments

@ReekiLee
Copy link

Hello!
Thanks for your great code! However, I met a bug. I prepared the enviroment and installed it according to your README file, after that I ran demo.py, and I met this:

Traceback (most recent call last):
File "demo.py", line 22, in
im1_v = im1.cuda()
RuntimeError: CUDA error: out of memory

I used nvidia-smi to check the GPU but it had enough memory. I don't know how to fix the bug. Could you give me some advice and ideas? Thank you in advance!

@Yuliang-Zou
Copy link
Member

Did you the empty GPU or other occupied GPUs? Or did you load your custom high-resolution image?

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