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

Cuda out of memory #1

Open
zeddo123 opened this issue Jun 1, 2023 · 1 comment
Open

Cuda out of memory #1

zeddo123 opened this issue Jun 1, 2023 · 1 comment

Comments

@zeddo123
Copy link

zeddo123 commented Jun 1, 2023

Hi,

I tried running the model on my Quadro M1200 (4G), and I've ran into a memory issue. Does the model need a lot of vRAM or can I somehow tweak it?

Here's the output after running the main script:

torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 34.00 MiB (GPU 0; 3.95 GiB total capacity; 3.29 GiB already allocated; 11.38 MiB free; 3.37 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

I've tried changing max_slip_size_mb but it didn't help. Thank you in advance for any feedback you might give ;)

@israel-cj
Copy link

I think the problem is related to the size of your image, width x height has too many pixels. I had the same problem, so I subsampled my image to make it smaller and solved the problem.

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