kristinbranson / APT

Animal Part Tracker
GNU General Public License v3.0
71 stars 16 forks source link

Free GPUs #392

Open jverpeut opened 2 years ago

jverpeut commented 2 years ago

I have a windows 10 PC with Intel(R) Xeon(R) Gold 6230 CPU @ 2.10GHz, 32GB local RAM, and Quadro P2200 graphics card. The gui (see below) is giving me a warning message that it cannot find free GPUs. In Matlab, if I type gpuDevice it find the graphic card without a problem. I followed the steps on the wiki. Do you have any additional tips to help me troubleshoot this problem? Thank you and I look forward being able to use the software.

GPUquestion

allenleetc commented 2 years ago

Hi,

It looks like a Quadro P2200 has 5GB of graphics RAM and you may be hitting a hardcoded internal memory expectation.

To workaround, can you please try the following. In an editor, please edit the file <APTRoot>/matlab/DLBackEndClass.m and set the minFreeMem property value to something less than 5GB, say 4000? I wouldn't set it to 5000 precisely as some resources may be consumed by other processes.

Once DLBackEndClass.m is updated, the safest is to quit and restart your MATLAB. After the restart, hopefully APT will now detect your card.

Please note that depending on your movie image size and network, 5GB of graphics RAM may require downsampling, reduction of batch size, etc in your Training Parameters in order to fit Training on the card.

Hope this works! We can leave this issue open either way as a reminder to improve/remove the hardcoded constraint.

jverpeut commented 2 years ago

Thank you for the quick reply. I will try this.