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 in image denoising code. #130

Open
MayThetTun opened this issue Jun 7, 2023 · 3 comments
Open

CUDA out of memory in image denoising code. #130

MayThetTun opened this issue Jun 7, 2023 · 3 comments

Comments

@MayThetTun
Copy link

restored = model_restoration(input_) in denoising.
RuntimeError: CUDA out of memory. Tried to allocate 176.00 MiB (GPU 0; 5.00 GiB total capacity; 3.94 GiB already allocated; 0 bytes free; 4.28 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 .

@chenguo12315
Copy link

May be your image's is not a eight multiple you should resize your image size
image

@hust-lidelong
Copy link

hust-lidelong commented Aug 24, 2023 via email

@ahmedAbassi123
Copy link

what batch size are you using?

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

4 participants