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

Issue with GPU Memory #37

Open
RaihanahSyamimi opened this issue Nov 5, 2023 · 2 comments
Open

Issue with GPU Memory #37

RaihanahSyamimi opened this issue Nov 5, 2023 · 2 comments

Comments

@RaihanahSyamimi
Copy link

How to fix this?

torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 2.50 GiB. GPU 0 has a total capacty of 14.75 GiB of which 1.28 GiB is free. Process 33641 has 13.46 GiB memory in use. Of the allocated memory 12.05 GiB is allocated by PyTorch, and 381.06 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
Epoch 1, lr 0.0001: 0% 0/1352 [00:28<?, ?it/s]

@ChloePines
Copy link

Hello, have you solved this problem? I had this problem too

@ternaus
Copy link
Owner

ternaus commented Mar 28, 2024

I did not even know that people use the code 6 years after the release.

Try to replace network with one from https://github.com/qubvel/segmentation_models.pytorch

there are many more powerful and lighter networks.

VGG is ultra hevy, try resnet, resnext, etc, they may work.

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

3 participants