TreB1eN / InsightFace_Pytorch

Pytorch0.4.1 codes for InsightFace
MIT License
1.73k stars 423 forks source link

Run on CPU? #45

Open DecentMakeover opened 5 years ago

DecentMakeover commented 5 years ago

Hi

Thanks for sharing Your work, I was wondering if i could run this only on the CPU?

TreB1eN commented 5 years ago

yes, you can. both CPU and gpu are supported

JerryHanZD commented 5 years ago

yes, you can. both CPU and gpu are supported

Hi, really thanks for your code! I'm working on a lab pc with no GPU, and trying to work on CPU. I met the problem "OSError: libcuda.so.1: cannot open shared object file: No such file or directory". Do I need to change the running environment? Or do you know how to solve this problem? Thx!!

qingshan412 commented 4 years ago

Hi, really thanks for your code! I'm working on a lab pc with no GPU, and trying to work on CPU. I met the problem "OSError: libcuda.so.1: cannot open shared object file: No such file or directory". Do I need to change the running environment? Or do you know how to solve this problem? Thx!!

You can specify the map_location when restoring the existing model on different platforms, like self.model.load_state_dict(torch.load(save_path/'model_{}'.format(fixed_str), map_location=conf.device))

ThanhPham1987 commented 4 years ago

Hi When i run model on CPU. I face issue: Illegal instruction (core dumped) can you give me some advice? Best regards, PeterPham

AkaCoder404 commented 3 months ago

@ThanhPham1987 Hey I solve this issue by installing an earlier version of pip install mxnet==1.1.0 (when running python face_verify.py). Then installing the correct numpy. I'm not sure if this solve yours issue.