Search code examples
tensorflowgpuface-recognitiondlib

how to run dlib face recognition with gpu


I have installed visual studio 2019, and Cuda 10.1 and TensorFlow 2.1.0 and I still can't run face recognition with GPU, can someone give me a complete guide on the steps to use GPU instead of CPU.

note: I'm using windows 10, my GPU is gtx1050 and I am using anaconda spider.


Solution

  • i solved this by these steps using an anaconda enviroment:

    cuda 10.2 installed

    python (3.7.7)

    conda install pip

    conda install tensorflow (latest 2.1.0)

    conda install tensorflow-gpu

    pip install imutils

    pip install opencv-python

    pip install opencv-contrib-python

    pip install dlib

    pip install face_recognition