How to install Openface in windows python

Vivek Joshi picture Vivek Joshi · Jun 24, 2016 · Viewed 13.7k times · Source

I am a newbie to Openface. Due to some reasons I want to install Openface in windows with python. It would be great if anyone could guide me through that. I have searched online, but not a single article talks about windows python installation. May be I am asking a very simple question but please help me through this.

Answer

Brandon Amos picture Brandon Amos · Jul 2, 2016

I'm not aware of OpenFace being used on Windows directly, but please contribute any changes necessary to the repository if you start working on this. I expect there to be a few compatibility issues with Linux-only features.

A workaround solution is to the prebuilt OpenFace Docker container on Windows with a Docker machine. Some of this is from the OpenFace setup guide. First start a Linux Docker machine on Windows. Then pull the OpenFace docker 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