导入打开时出错

2024-10-01 00:21:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我用link安装了openface

但是当我在python中导入openface时,它给出了一个错误

./util/align-dlib.py ./home/admin1/Dhoni/ align outerEyesAndNose    ./aligned-images/ --size 96
Traceback (most recent call last):
File "./util/align-dlib.py", line 24, in <module>
import openface
ImportError: No module named openface

请帮帮我!!!!!在


Tags: pyhomesize错误utillinkmoduleimages
2条回答

如果你在Linux上

  1. 克隆项目:https://github.com/cmusatyalab/openface
  2. cd开口
  3. Python设置.py安装
  4. 然后在openface/目录中创建一个名为__init__.py的空文件
  5. 尝试运行demo命令:./demos/比较.py图片/示例/{lennon*,clapton*}

注意:如果演示因依赖关系问题而失败,请尝试安装这些依赖项。在我的情况下,我也喜欢安装

luarocks install torch
luarocks install nn
luarocks install dpnn

在终端中执行此操作:

cd/home/您的用户名/openface

Python设置.py安装

这应该对你有帮助。在

相关问题 更多 >