How to install openface in windows python

I am new to Openface. For some reason I want to install Openface in windows using python. It would be great if someone could guide me through this. I searched on the Internet, but not a single article talks about installing Windows python. Maybe I am asking a very simple question, but please help me with this.

+7
source share
3 answers

I do not know how OpenFace is used directly in Windows, but please make any necessary changes to the repository if you start working on this. I expect there will be several compatibility issues with Linux-only features.

A workaround is the pre-built OpenFace Docker container on Windows with the Docker machine. This is partly from the OpenFace installation guide . First run Linux Docker on Windows . Then remove the OpenFace dock container from here :

docker pull bamos/openface docker run -p 9000:9000 -p 8000:8000 -t -i bamos/openface /bin/bash cd /root/openface ./demos/compare.py images/examples/{lennon*,clapton*} ./demos/classifier.py infer models/openface/celeb-classifier.nn4.small2.v1.pkl ./images/examples/carell.jpg ./demos/web/start-servers.sh 
+7
source

Steps to install openface in windows that helped me.

  1. Download openface from this path- http://cmusatyalab.imtqy.com/openface/
  2. Insert the openface folder into the path where the python.exe file exists.
  3. Run the commit Python openface / setup.py install
+2
source

If you are using anaconda , then the following steps have helped me. The reward for these steps belongs to nitish11, who posted them on github: https://gist.github.com/ageitgey/82d0ea0fdb56dc93cb9b716e7ceb364b

  1. Open a command prompt from inside the anaconda.
  2. Install git if necessary ( conda install -c anaconda git )
  3. git clone https://github.com/cmusatyalab/openface.git
  4. cd openface
  5. pip install -r requirements.txt
  6. (sudo) python setup.py install

sudo may not be required in step 6.

Hope this helps.

+1
source

All Articles