karlpauwels/simtrack

Graphic card runs out of memory

davizinho5 opened this issue · 1 comments

Hello,

First of all, I wrote on Friday in a closed issue, and then I thought this was a really bad idea, so I decided to open a new issue but the message has the same content.

I have a similar problem as mklingen had (#4), the device runs out of memory most of the times (95%) I launch it, but in this case with an ASUS camera. I thought it was because I use an old graphic card, still is Fermi class , so I though it would be enough. Here is my nvidia-smi:

smi-nvidia

I think it should have enough memory for both tracking and detection, but anyways, is there a way to use less memory? What if I use a 3D model with less points on it?
Also, in my case I would only need the tracking system since I can provide a different detection procedure. Is there a simple way to launch only the tracking and sharing the detection info from another node?

Thanks!

For the Xtion you'll need about 300MB for tracking and 1GB for detection with the three example objects. You seem to only have about 1GB free since your desktop also uses up memory. You can try it with one object by commenting here.

For most models, the model size for detection depends more on the specific type of texture (the number of keypoints that can be extracted) and the resolution of the texture, than on the number of 3D points in the model. Unless of course your model geometry is huge.

The easiest way to use a custom detection procedure is to have a look at the detectorThreadFunction and replace multi_rigid_detector_ with your own object.

Hope this helps!