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

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

Open
jxylon opened this issue Jan 15, 2021 · 7 comments
Open

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

jxylon opened this issue Jan 15, 2021 · 7 comments

Comments

@jxylon
Copy link

jxylon commented Jan 15, 2021

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

@zBabar
Copy link

zBabar commented Mar 24, 2021

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

@maoyj1998
Copy link

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
Copy link

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
Copy link

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?

@SandroJijavadze
Copy link

@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.

@maoyj1998
Copy link

maoyj1998 commented Jun 21, 2021

@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.

@frozen30
Copy link

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

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

5 participants