Skip to content

Instantly share code, notes, and snippets.

@bninopaul
Last active March 16, 2016 13:16
Show Gist options
  • Save bninopaul/f34ceccbe742c60df5ba to your computer and use it in GitHub Desktop.
Save bninopaul/f34ceccbe742c60df5ba to your computer and use it in GitHub Desktop.

Installation

Steps for installation of openface

System packages

brew install bash coreutils curl findutils opencv
brew install python --framework --universal --with-brewed-openssl
brew install boost-python --universal

Python & packages

1. git clone --recursive https://github.com/cmusatyalab/openface.git
2. cd openface
3. mkvirtualenv -p /usr/local/bin/python2.7 openfaceenv (make a virtual environment openfaceenv)
4. pip install numpy scipy pandas scikit-learn scikit-image (make sure you are in the virtual env)
5. cp /usr/local/lib/python2.7/site-packages/cv* .virtualenvs/openfaceenv/lib/python2.7/site-packages (copy the open cv files into the virtual env sitepacakges )
6. deactivate
For installing dlib:
1. clone the github repo, https://github.com/davisking/dlib
2. `cd` to the repo 
3. run `python setup.py install`

Torch

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

luarocks install dpnn
luarocks install nn
luarocks install optim 
luarocks install csvigo
luarocks install cunn (failed, I don't have cuda installed)
luarocks install fblualib (failed, no match results)
luarocks install torchx

Finally, go to the openface repo and run

python setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment