InsightFace_Pytorch icon indicating copy to clipboard operation
InsightFace_Pytorch copied to clipboard

Run on CPU?

Open DecentMakeover opened this issue 6 years ago • 5 comments

Hi

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

DecentMakeover avatar Feb 09 '19 08:02 DecentMakeover

yes, you can. both CPU and gpu are supported

TreB1eN avatar Mar 02 '19 10:03 TreB1eN

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!!

JerryHanZD avatar Jul 15 '19 06:07 JerryHanZD

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))

qingshan412 avatar Dec 06 '19 19:12 qingshan412

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

ThanhPham1987 avatar Mar 12 '20 14:03 ThanhPham1987

@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.

AkaCoder404 avatar Jun 07 '24 08:06 AkaCoder404