/usr/bin/env: "th": 没有那个文件或目录----Openface

问题描述 投票:0回答:0

我在使用openface的时候遇到了这个错误

/usr/bin/env: "th": no such file or directory

Exception: 
OpenFace: `openface_server.lua` subprocess has died.
+ Is the Torch command `th` on your PATH? Check with `which th`.
+ If `th` is on your PATH, try running `./util/profile-network.lua`
  to see if Torch can correctly load and run the network.
  + If this gives illegal instruction errors, see the section on
    this in our FAQ at http://cmusatyalab.github.io/openface/faq/
  + In Docker, use a Bash login shell or source
     /root/torch/install/bin/torch-activate for the Torch environment.
+ See this GitHub issue if you are running on a non-64-bit machine:
  https://github.com/cmusatyalab/openface/issues/42
+ Advanced Users: If you think this problem is caused by
running Lua as a subprocess, Vitalius Parubochyi has created
a version of this that uses https://github.com/imodpasteur/lutorpy.
This file is available at <openface>/openface/torch_neural_net.lutorpy.py
and our mailing list discussion on this can be found at:
https://groups.google.com/forum/#!topic/cmu-openface/Jj68LJBdN-Y
+ Please post further issues to our mailing list at
  https://groups.google.com/forum/#!forum/cmu-openface
Diagnostic information:
cmd: ['/usr/bin/env', 'th', '/home/miniconda3/envs/cuda11/lib/python3.7/site-packages/openface/openface_server.lua', '-model', '/home/miniconda3/envs/cuda11/lib/python3.7/site-packages/openface/mmod_human_face_detector.dat', '-imgDim', '96']
============
stdout: 

我应该用它做什么?我特别着急

找不到命令“th”,但可以安装:

sudo apt 安装 torch-trepl

python-3.x
© www.soinside.com 2019 - 2024. All rights reserved.