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

about 'cuda out of memory' #113

Open
Amberrferr opened this issue Nov 26, 2021 · 2 comments
Open

about 'cuda out of memory' #113

Amberrferr opened this issue Nov 26, 2021 · 2 comments

Comments

@Amberrferr
Copy link

Hello! Wenn I run this programm, there is a RuntimeError: CUDA out of memory. Tried to allocate 182.00 MiB (GPU 0; 15.90 GiB total capacity; 14.60 GiB already allocated; 75.75 MiB free; 15.12 GiB reserved in total by PyTorch). I would like to ask, besides reducing Batch_size, is there any other way to solve this problem? Because when I reduce the Batch_size to 4, hm Loss is always nan.

@yijingru
Copy link
Owner

Hi, you might crop input images to smaller size

@Amberrferr
Copy link
Author

Amberrferr commented Nov 29, 2021

Hi, you might crop input images to smaller size

Thanks for your answers! I tried to change the Input size to 400x400, gap=80, but on my computer, it can only run when batch size=4. (PS: the programm can run on batch size=6, when Input size is 600x600). The GPU I use is TU102 (Geforce RTX 2080 Ti, GPU memory 10GB) It's not working :(

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