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

Can I run the code without GPU? #14

Open
onioncc opened this issue Nov 13, 2017 · 2 comments
Open

Can I run the code without GPU? #14

onioncc opened this issue Nov 13, 2017 · 2 comments

Comments

@onioncc
Copy link

onioncc commented Nov 13, 2017

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

onioncc commented Nov 14, 2017

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

@PLester
Copy link

PLester commented Jan 21, 2019

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

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

2 participants