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

Open
DmitriiSavin opened this issue Feb 6, 2025 · 0 comments
Open

Cuda out of memory #157

DmitriiSavin opened this issue Feb 6, 2025 · 0 comments

Comments

@DmitriiSavin
Copy link

I'm encountering a strange error:
Fine-tuning on a large dataset occurs without problems and very good performance is achieved on val and test

But when fine-tuning on a smaller dataset on the 21st epoch, I get the following error when calculating the forest, namely on this line of code
https://github.com/Peterande/D-FINE/blob/master/src/misc/box_ops.py#L54

This error occurs
torch.OutOfMemoryError: CUDA out of memory

I have restarted training several times and the same error occurs every time at the same epoch on this dataset. There is no such problem with another dataset even using the same training parameters (learning rate, batch size, augmentations and so on)

Has anyone seen this problem before?

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