安装及运行openface的大坑
来源:互联网 发布:域名购买是永久的吗 编辑:程序博客网 时间:2024/06/07 02:20
安装及运行openface的大坑
我是按照教程:
http://blog.csdn.net/itas109/article/details/50790139
一步一步做的,编译demo的时候遇见了若干蛋疼的错误:
错误1:运行demo中的compare.py程序时报错 /usr/bin/env: ‘python2\r’: No such file or directory
大概是这样,百度+google+stackoverflow都没有,最后才知道,是因为程序在windows下生成的,需要改为unix编码:
dos2unix compare.py
即可
错误2: 运行compare.py 报错 /usr/bin/env: th: No such file or directory
这个错误是因为安装torch时,用的sudo安装的,导致使用torch权限有些问题,采用超级帐号运行程序即可。
错误3:Exception: Unable to load image: ./images/examples/lennon*
如果按照demo中给的命令:./demos/compare.py images/examples/{lennon*,clapton*}
会出现如下报错
Traceback (most recent call last):File "./compare.py", line 99, ind = getRep(img1) - getRep(img2)File "./compare.py", line 68, in getRepraise Exception("Unable to load image: {}".format(imgPath))Exception: Unable to load image: ./images/examples/lennon*
两种原因:
1. demo中给出的图片路径是有问题的,检查改为正确路径,若当前路径在openface下,则该为:
./demos/compare.py ./images/examples/{lennon*,clapton*}
2. 路径输入:{lennon*,clapton*} 之间不能有空格,{lennon*, clapton*} 是错误的
最后,截图compare.py 的运行结果:
0 0
- 安装及运行openface的大坑
- openface安装
- Ubuntu16下openface的安装与测试
- Openface初次安装配置
- 【OpenFace】
- OpenFace
- 【OpenFace】
- Ubuntu16.04下openface安装
- ubuntu下安装hping的大坑。。。
- Openface在Liunx下配置成功运行:
- 记录搭建openface的路
- charm++的安装及运行
- LAMP的安装及运行
- 编译openface代码遇到问题及解决方法
- Redhat 远程服务器上安装 Openface
- 安装Openface,实现人脸比对
- python3 安装lxml 大坑
- 微信支付的大坑-1及集成过程
- mybatis做like模糊查询
- android studio 导入aar (阿里百川 hotfix aar 导入)
- 人脸识别和人脸检测的区别
- Android 调用系统相机拍摄获取照片的两种方法实现实例
- Opencv2.4.9 vs2013永久配置 绝对路径
- 安装及运行openface的大坑
- Gogland IDE Run/Debug Configurations 配置说明
- 页面加载顺序问题,影响视觉效果,使用loading解决。
- 进制转换
- OC与JS交互之WKWebView
- Glide、Picasso和Fresco
- 让textarea的高度自适应
- Linux系统学习笔记:套接字
- $.ajax 发送数据到springmvc...正在重新整理中