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

How much cuda memory does dotav15 need? #4

Open
kouyuanbo opened this issue Jul 4, 2024 · 1 comment
Open

How much cuda memory does dotav15 need? #4

kouyuanbo opened this issue Jul 4, 2024 · 1 comment

Comments

@kouyuanbo
Copy link

I try to train rhino with the config 'rhino-4scale_r50_2xb2-12e_dotav15.py' on RTX 4090(24 G)×2,batch size is 2.But the following error message has appeared:

RuntimeError: CUDA out of memory. Tried to allocate 1.03 GiB (GPU 0; 23.65 GiB total capacity; 19.63 GiB already allocated; 735.00 MiB free; 20.85 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
@nijkah
Copy link
Member

nijkah commented Jul 26, 2024

@kouyuanbo I am sorry for the late response. Can you recheck your settings?
In my case, the same setting 'rhino-4scale_r50_2xb2-12e_dotav15.py' with batch_size=2 requires 8300~1570 MB.
Note that 'the denoising training' from DINO can result in higher memory usage when there are a lot of GT objects.

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