OpenFace face recognition API Installation prerequisites Torch Setup 4

Опубликовано: 16 Декабрь 2024
на канале: Areeb Zaidi
28,709
75

How to install Torch for OpenFace and all the related packages, to make sure OpenFace work properly

Freely available at http://github.com/cmusatyalab/openface

Original Google CVPR 2015 FaceNet paper: http://www.cv-foundation.org/openacce...

Commands For installing Torch

Downloading Torch
$ git clone https://github.com/torch/distro.git ~/torch --recursive
$ cd ~/torch
$ bash install-deps
$ ./install.sh

$ sudo apt-get install luarocks
TORCH_LUA_VERSION=LUA52 ./install.sh

-For permission issues or errors with luarocks type the following commands-

$ sudo chmod -R 777 ~/opencv
$ sudo chmod -R 777 ~/torch

--For permission issues --

packages to download via luarocks for Torch

$ luarocks install dpnn
$ luarocks install nn
$ luarocks install optim
$ luarocks install csvigo
$ luarocks install cutorch and cunn (only with CUDA)
$ luarocks install fblualib (only for training a DNN)
$ luarocks install tds (only for training a DNN)
$ luarocks install torchx (only for training a DNN)
$ luarocks install optnet (optional, only for training a DNN)

More Info? Click below to Subscribe:

   / syedareebzaidi  

  / syedareebzaidi  

  / areeb_bj  

  / syed.areeb.zaidi  

Thanks for watching!