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

Test out of memory #87

Open
XYZ-916 opened this issue Oct 10, 2023 · 1 comment
Open

Test out of memory #87

XYZ-916 opened this issue Oct 10, 2023 · 1 comment

Comments

@XYZ-916
Copy link

XYZ-916 commented Oct 10, 2023

run python3 test.py --config_path ./configs/test/SRGAN_x4-SRGAN_ImageNet-Set5.yaml
error:
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 1579.66 GiB (GPU 0; 79.35 GiB total capacity; 21.76 GiB already allocated; 54.55 GiB free; 23.29 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

@arpanpoudel
Copy link

It's because of your GPU not being enough. Change the batch size in configs file

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