bottom-up-attention icon indicating copy to clipboard operation
bottom-up-attention copied to clipboard

Check failed: error == cudaSuccess (2 vs. 0) out of memory

Open jxylon opened this issue 3 years ago • 7 comments

I run demo to extract bounding box features on GTX 2080Ti, but I received this error.

F0115 10:36:21.001302  3456 syncedmem.cpp:71] Check failed: error == cudaSuccess (2 vs. 0)  out of memory

Looking forward to anyone's help

jxylon avatar Jan 15 '21 02:01 jxylon

Hi,

Have you solved this problem? I am facing similar problem for some images. Rest of the images it do work. But some images it gets stuck and throws this error. F0324 13:21:55.416903 11805 syncedmem.cpp:71] Check failed: error == cudaSuccess (2 vs. 0) out of memory

zBabar avatar Mar 24 '21 12:03 zBabar

I run demo to extract bounding box features on GTX 2080Ti, but I received this error.

F0115 10:36:21.001302  3456 syncedmem.cpp:71] Check failed: error == cudaSuccess (2 vs. 0)  out of memory

Looking forward to anyone's help

hi have you solved this problem ?

maoyj1998 avatar Jun 19 '21 08:06 maoyj1998

Decreasing BATCH_SIZE and RPN_BATCHSIZE size in yml configuration file fixed it for me (experiments/cfgs/faster_rcnn.. .yml)

image hi, I check the yml file, but all the config you mentioned are training settings, test settings have nothing todo with BATCH_SIZE, I wonder whether it will work if I change these config

maoyj1998 avatar Jun 19 '21 08:06 maoyj1998

Hi,

Have you solved this problem? I am facing similar problem for some images. Rest of the images it do work. But some images it gets stuck and throws this error. F0324 13:21:55.416903 11805 syncedmem.cpp:71] Check failed: error == cudaSuccess (2 vs. 0) out of memory

hi, did you solve this problem?

maoyj1998 avatar Jun 19 '21 08:06 maoyj1998

@maoyj1998 I deleted my previous comment, I thought it was fixed but I still got the same error after running on few examples. I switched to T4 GPU wchich has 16gb of memory and that fixed it later. I was getting errors on rtx 2070 super which has only 8gb memory.

SandroJijavadze avatar Jun 20 '21 17:06 SandroJijavadze

@maoyj1998 I deleted my previous comment, I thought it was fixed but I still got the same error after running on few examples. I switched to T4 GPU wchich has 16gb of memory and that fixed it later. I was getting errors on rtx 2070 super which has only 8gb memory.

I use this code to extract feature from VG datasets, and I found it was caused by some images with big difference in aspect ratio, for example 281 * 500, faster rcnn will resize the image based on the shorter edge, so making the larger edge too large.
image I modified this part and it works.

maoyj1998 avatar Jun 21 '21 00:06 maoyj1998

Have you solved this problem? I will also encounter this problem when running demo.ipynb

frozen30 avatar Jan 16 '24 10:01 frozen30