cfnet icon indicating copy to clipboard operation
cfnet copied to clipboard

Can I run the code without GPU?

Open onioncc opened this issue 7 years ago • 2 comments

Hi Bertinetto,

I am trying to run your code but I don't have an GPU. Is there anyway that I can modify the code? I saw there are several pieces related to GPU and I am hesitating to make major changes.

Best Regards, Cong

onioncc avatar Nov 13 '17 10:11 onioncc

Hi Bertinetto,

I simply modified the code and now it is running well on a single CPU. Thanks again for your excellent work! btw it is so tragic without a GPU ...

Best Regards, Cong

onioncc avatar Nov 14 '17 02:11 onioncc

I also need to run the code without GPU, and I changed the following codes:

  1. "tracker.m" (1) p.gpus = 1; -> p.gpus = []; (2) p.init_gpu = true; -> p.init_gpu = false;
  2. "tracker_step.m" responseMapsUP = gpuArray(single(zeros(p.scoreSize*p.responseUp, p.scoreSize*p.responseUp, p.numScale))); -> responseMapsUP = single(zeros(p.scoreSize*p.responseUp, p.scoreSize*p.responseUp, p.numScale));

Besides, if you want to visualize images, set p.visualization = true; in tracker.m. If you want to test your own sequences, please set paths.eval_set_base = '...\cfnet\data\' as your path of dataset in "env_path_tracking.m", and put sequences into data/validation folder with the following structure: sequence_name | ----0001.jpg ~xxxx.jpg | ----groundtruth.txt

PLester avatar Jan 21 '19 02:01 PLester