DeepCrack icon indicating copy to clipboard operation
DeepCrack copied to clipboard

RuntimeError: CUDA out of memory

Open ousim97 opened this issue 4 years ago • 2 comments

Hi,

I have an issue in the test.py code with the pretrained model. Everytime I run it I got the following error: RuntimeError: CUDA out of memory. Tried to allocate 120.00 MiB (GPU 0; 4.00 GiB total capacity; 2.48 GiB already allocated; 105.14 MiB free; 2.51 GiB reserved in total by PyTorch)

Note that I have reduced the batch size as suggested in other topics but I still get the same eroor. Do you have a solution please?

Thanks in advance

ousim97 avatar Sep 19 '20 20:09 ousim97

An nvidia 1060 or up gpu may satisfy the requirement.

qinnzou avatar Nov 05 '20 15:11 qinnzou

ME TOO. Seems 4GB is not enough cause the batchsize has been set to 1

ake020675 avatar Mar 24 '21 08:03 ake020675

large GPU memory is required.

qinnzou avatar Dec 06 '22 09:12 qinnzou