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

运行train_valid_inference_main.py文件时爆显存 #118

Open
hjj-lmx opened this issue Apr 17, 2024 · 0 comments
Open

运行train_valid_inference_main.py文件时爆显存 #118

hjj-lmx opened this issue Apr 17, 2024 · 0 comments

Comments

@hjj-lmx
Copy link

hjj-lmx commented Apr 17, 2024

net = ISNetGTEncoder() #UNETGTENCODERCombine() 和 hypar["model"] = ISNetDIS() #U2NETFASTFEATURESUP()报红,但是不影响运行,当跑到训练时报torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 64.00 MiB. GPU 0 has a total capacity of 12.00 GiB of which 0 bytes is free. Of the allocated memory 10.08 GiB is allocated by PyTorch, and 54.95 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)

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