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

RuntimeError: CUDA out of memory. Tried to allocate 970.00 MiB (GPU 0; 7.79 GiB total capacity; 4.39 GiB already allocated; 57.06 MiB free; 5.63 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 #32

Open
bling-bling-only opened this issue May 19, 2022 · 0 comments

Comments

@bling-bling-only
Copy link

请问有什么可以避免显卡爆显存的问题,batch size默认为1,然后图片切割尺寸也调小过,在--scale 2000的情况下只能训练20个epoch,且无法验证

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