Installation instructions are basically notes that I took while installing openface on MacOSX El Capitan.
brew install bash coreutils curl findutils opencv
brew install python --framework --universal --with-brewed-openssl
brew install boost-python --universal
git clone --recursive https://github.com/cmusatyalab/openface.git
cd openface
virtualenv env
source env/bin/activate
pip install dlib numpy scipy pandas scikit-learn scikit-image
cp /usr/local/lib/python2.7/site-packages/cv* env/lib/python2.7/site-packages
deactivate
curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash
git clone https://github.com/torch/distro.git torch --recursive
cd torch
./install.sh
source install/bin/torch-activate
luarocks install csvigo
luarocks install dpnn
luarocks install nn
cd ..
source env/bin/activate
Put images (structured by subdirectory) into e.g. data/mydataset/raw:
- data/mydataset/raw/person-1 * 1.jpg * ...
- data/mydataset/raw/person-2 * ...
for N in {1..8}; do ./util/align-dlib.py data/mydataset/raw align affine data/mydataset/aligned --size 96 &; done
luajit batch-represent/main.lua -data data/mydataset/aligned -outDir data/mydataset/reps -model models/openface/nn4.v1.t7
./demos/classifier.py train data/mydataset/reps
./demos/classifier.py infer data/mydataset/reps/classifier.pkl <image>
check this out it might help u >>> https://groups.google.com/forum/#!topic/cmu-openface/8Nk2fvmd8fI