-
Notifications
You must be signed in to change notification settings - Fork 63
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
GPU memory allocation #153
Comments
Hi Siewert, it turns out many of our users are reporting this issue with 11GB cards. Currently the only work-around is to reduce the batch size. I've updated the README to accurately reflect this requirement. Greg |
@siewerthug were you able to find a work around for this? |
@gregjohnso I haven't looked into it further. In which file do I change the batchsize for the prediction data? |
I have also experienced this issue. To my best knowledge, I have request 60GB of memory on the GPU. Instead of running
|
DescriptionI have a very similar issue: I observe a disproportional increase in occupied memory, changing the batch size. I have to go down to very small batch sizes (bs) to fit the model onto the GPU during training. Here are examples of the occupied memory returned by
. I trained on single image .tiff files that range between 2-4 MB in size. The training set consists of 130 (signal and target) images and the validation set consists of 60 images. Given that the provided demo uses a larger bs and larger samples, I assume this behaviour is not expected. Of note, I trained with the
Environment
Thank you, |
Hi
Whenever I try to run the following code after installing:
python predict.py
Then I get the following error:
RuntimeError: CUDA out of memory. Tried to allocate 1024.00 MiB (GPU 0; 10.73 GiB total capacity; 7.74 GiB already allocated; 77.06 MiB free; 1.89 GiB cached)
I have an GeForce RTX 2080 Ti 11 GB Founders Edition Video Card so it should have plenty of memory free. All GPU memory should be free (nothing else is running, verified by nvidia-smi.
It used to do the same thing with download_and_train.py, but then I just changed batch size to 16 and it started working. Of course, this is just a run around and is not a fix for the prediction code.
I would appreciate any help with this!
Siewert
The text was updated successfully, but these errors were encountered: