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

OutOfMemoryError : how to reduce GPU memory footprint ? #11

Open
fabricecarles opened this issue Feb 9, 2024 · 0 comments
Open

OutOfMemoryError : how to reduce GPU memory footprint ? #11

fabricecarles opened this issue Feb 9, 2024 · 0 comments

Comments

@fabricecarles
Copy link

fabricecarles commented Feb 9, 2024

when I try to run :
python launch.py --config configs/bakedsdf-colmap.yaml --gpu 0 --train
I get this type of error in my GPU GeForce RTX 2070 (with 8 Gb of VRAM)

torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 2.10 GiB (GPU 0; 7.79 GiB total capacity; 3.30 GiB already allocated; 341.44 MiB free; 5.82 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
Epoch 0: : 16it [02:12,  8.29s/it, loss=1.99, train/inv_s=20.10, train/num_rays=1226.0]
  1. How can I change config to reduce GPU memory footprint ?
  2. What is the minim amount of VRAM required ?
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