【发布时间】:2016-10-27 12:22:22
【问题描述】:
我是 Openface 的新手。由于某些原因,我想用 python 在 windows 中安装 Openface。如果有人能指导我完成那将是很棒的。我在网上搜索过,但没有一篇关于windows python安装的文章。可能是我在问一个非常简单的问题,但请帮助我解决这个问题。
【问题讨论】:
标签: python windows installation deep-learning face-recognition
我是 Openface 的新手。由于某些原因,我想用 python 在 windows 中安装 Openface。如果有人能指导我完成那将是很棒的。我在网上搜索过,但没有一篇关于windows python安装的文章。可能是我在问一个非常简单的问题,但请帮助我解决这个问题。
【问题讨论】:
标签: python windows installation deep-learning face-recognition
我不知道 OpenFace 是否直接在 Windows 上使用,但如果您开始处理此问题,请为存储库提供任何必要的更改。我预计只有 Linux 的功能会存在一些兼容性问题。
解决方法是在 Windows 上使用 Docker 机器预构建 OpenFace Docker 容器。其中一些来自OpenFace setup guide。首先start a Linux Docker machine on Windows。然后从here拉取OpenFace docker容器:
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
【讨论】:
在适合我的 Windows 中安装 openface 的步骤。
【讨论】:
如果您使用的是 anaconda,那么以下步骤对我有用。这些步骤的功劳归于 nitish11,他在 github 上发布了这些步骤:https://gist.github.com/ageitgey/82d0ea0fdb56dc93cb9b716e7ceb364b
conda install -c anaconda git)git clone https://github.com/cmusatyalab/openface.gitcd openfacepip install -r requirements.txt(sudo) python setup.py install sudo 在步骤 6 中可能不需要。
希望这会有所帮助。
【讨论】: