OpenFace: подпроцесс `openface_server.lua` умер в php-файле Symphony

Openface отлично работает на терминале и плавно отображает вывод. Я просто передаю каталог в моем php и запускаю скрипт compare.py. Но выдает ошибку

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/

Код симфонии

$process = new Process(['python2', '/home/machine/Desktop/check.py']);
$process->run();
echo exec("whoami");
// executes after the command finishes
if (!$process->isSuccessful()) {
    throw new ProcessFailedException($process);
}
echo $process->getOutput();

0 ответов

Другие вопросы по тегам