Error in: cmd: ['/usr/bin/env', 'th', '/home/sct/miniconda3/envs/openface01/lib/python2.7/site-packages/openface/openface_server.lua', '-model', '/home/sct/CV/openface/demos/../models/openface/nn4.small2.v1.t7', '-imgDim', '96']

73 views
Skip to first unread message

thangaraj R

unread,
Feb 18, 2022, 1:26:43 AM2/18/22
to CMU-OpenFace
./demos/compare.py images/examples/{lennon*,clapton*}
<openface.torch_neural_net.TorchNeuralNet instance at 0x7efc5f827320>
/home/sct/torch/install/bin/lua: .../sct/torch/install/share/lua/5.1/luarocks/loader.lua:117: error loading module 'treplutils' from file '/home/sct/torch/install/lib/lua/5.1/treplutils.so':
        dynamic libraries not enabled; check your Lua installation
stack traceback:
        [C]: in function 'a_loader'
        .../sct/torch/install/share/lua/5.1/luarocks/loader.lua:117: in function <.../sct/torch/install/share/lua/5.1/luarocks/loader.lua:114>
        (tail call): ?
        [C]: in function 'require'
        /home/sct/torch/install/share/lua/5.1/trepl/init.lua:40: in main chunk
        [C]: in function 'require'
        .../torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:104: in main chunk
        [C]: ?
Traceback (most recent call last):
  File "./demos/compare.py", line 102, in <module>
    d = getRep(img1) - getRep(img2)
  File "./demos/compare.py", line 93, in getRep
    rep = net.forward(alignedFace)
  File "/home/sct/miniconda3/envs/openface01/lib/python2.7/site-packages/openface/torch_neural_net.py", line 204, in forward
    rep = self.forwardPath(t)
  File "/home/sct/miniconda3/envs/openface01/lib/python2.7/site-packages/openface/torch_neural_net.py", line 161, in forwardPath
    """.format(self.cmd, self.p.stdout.read()))
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/sct/miniconda3/envs/openface01/lib/python2.7/site-packages/openface/openface_server.lua', '-model', '/home/sct/CV/openface/demos/../models/openface/nn4.small2.v1.t7', '-imgDim', '96']

============

stdout:
Reply all
Reply to author
Forward
0 new messages