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

CUDA error 2: out of memory #39

Open
ParanoidPY opened this issue Nov 20, 2024 · 1 comment
Open

CUDA error 2: out of memory #39

ParanoidPY opened this issue Nov 20, 2024 · 1 comment

Comments

@ParanoidPY
Copy link

When I run the inference demo code: "python inference/sample_shapenet.py none --category car --total_len 20 --batch_len 4 --ema --use_ddim --ddim_step 100 --extract_mesh".
it appears an error that shows "CUDA error 2: out of memory (/media/py/HDD1/3D/DiffusionModel/XCube/openvdb/fvdb/../nanovdb/nanovdb/cuda/GridHandle.cuh:83)".
My GPU is 4090 with 24g cuda memory. I want to know the least memory volume to run the code.
THANKS.

@xrenaa
Copy link
Collaborator

xrenaa commented Nov 20, 2024

Hi, you could try with batch_len 1

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