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 out of memory #29

Open
nesi73 opened this issue Sep 9, 2024 · 1 comment
Open

CUDA out of memory #29

nesi73 opened this issue Sep 9, 2024 · 1 comment

Comments

@nesi73
Copy link

nesi73 commented Sep 9, 2024

The first run was executed without any issues (bash run_inference_custom.sh). However, when repeating the same operation, it fails to work. I have checked the GPU memory using nvidia-smi before running the process to ensure it's not full, and it shows only 300MiB out of 16376MiB in use.

torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 1024.00 MiB (GPU 0; 15.99 GiB total capacity; 5.76 GiB already allocated; 8.75 GiB free; 5.87 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

@nesi73
Copy link
Author

nesi73 commented Sep 10, 2024

using fast_sam.yaml instead of sam.yaml works for me

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