Skip to content

How to decrease memory usage? #12

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

Open
luxious opened this issue Aug 3, 2022 · 1 comment
Open

How to decrease memory usage? #12

luxious opened this issue Aug 3, 2022 · 1 comment

Comments

@luxious
Copy link

luxious commented Aug 3, 2022

This is a really great project, we try to run the demo in our PC (NVIDIA GeForce RTX 3080 Ti).
But we encountered this error, can anyone tell me how to resolve this issue.
we have tried setting max_split_size_mb but not worked.

File "E:\projects\OcclusionFusion\model.py", line 89, in forward
  feature7 = self.layer72(feature7, edge_indexes[0])
...
RuntimeError: CUDA out of memory. Tried to allocate 2.00 MiB (GPU 0; 12.00 GiB total capacity; 11.10 GiB already allocated; 0 bytes free; 11.27 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
@luxious luxious changed the title How to decrease memory usage? How to reduce memory usage? Aug 3, 2022
@luxious luxious changed the title How to reduce memory usage? How to decrease memory usage? Aug 3, 2022
@Barbany
Copy link

Barbany commented Nov 24, 2022

I created a PR for that. You can check it at #14

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