2017-07-14 98 views
0

我安裝openface使用link錯誤進口openface

但是,當我在蟒蛇進口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 

請幫我!!!!!

+0

嘗試在python控制檯中導入「openface」。這告訴你,openface安裝與否。 – Kallz

回答

0

在終端執行此操作:

CD /家庭/ your_username/openface

蟒蛇的setup.py安裝

這會幫助你。

0

如果你是在Linux上,

  1. 克隆項目:https://github.com/cmusatyalab/openface
  2. CD openface
  3. 蟒蛇的setup.py安裝
  4. 然後創建openface /目錄
  5. 內名爲 __init__.py一個空文件
  6. 嘗試運行demo命令:./demos/compare.py images/examples/{lennon *,clapton *}

注意:如果演示因依賴問題失敗,嘗試安裝這些依賴。就像在我的情況下,我不得不安裝以下內容

luarocks install torch 
luarocks install nn 
luarocks install dpnn