Prem95 / realtime-face-anti-spoofing

Realtime Face Anti Spoofing with Face Detector based on Deep Learning using Tensorflow/Keras and OpenCV
MIT License
14 stars 0 forks source link

Can this run on CPU-only computer? #19

Closed Dnlee17 closed 2 years ago

Dnlee17 commented 2 years ago

Hi @Prem95 Can this run on CPU-only computer? If so, how can I modify your code thanks!

Prem95 commented 2 years ago

Hi there, the models are trained on a GPU, but I believe TF has functions to force to load the model on a CPU memory instead of a GPU. You can take a look at this StackOverflow