如何在Windows python中安装Openface [英] How to install Openface in windows python

查看:107
本文介绍了如何在Windows python中安装Openface的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Openface的新手.由于某些原因,我想在Windows中使用python安装Openface.如果有人可以指导我完成这些工作,那将是很好的.我已经在网上搜索过,但是没有一篇文章谈到Windows python的安装.可能是我在问一个非常简单的问题,但是请帮助我解决这个问题.

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.

推荐答案

我不知道直接在Windows上使用OpenFace,但是如果您开始进行此工作,请对存储库进行必要的任何更改.我希望仅Linux功能会存在一些兼容性问题.

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.

一种变通方法是使用Docker机器在Windows上预构建的OpenFace Docker容器.其中一些来自 OpenFace设置指南.首先在Windows上启动Linux Docker计算机.然后从此处:

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

这篇关于如何在Windows python中安装Openface的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆