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>
Hi @kaikuehne, I've been following your steps in installing openface, thanks for this helpful installation guide! The setup documentation in openface api seems not dummy-friendly. I did all the installation steps and to know if its working, I also create my own classifier, but after running the first line:
for N in {1..8}; do ./util/align-dlib.py data/lfw/ align affine data/lfw_aligned/ --size 96 & done
I tried to look at the folder
data/lfw_aligned
bycd
, I get this:Also, if I do simple importing of openface, that is:
How do I fix this? What might be the reason for this?