To run the server manually:
virtualenv env -ppython3
source env/bin/activate
pip install -r requirements.txt
cd moedx/
python manage.py makemigrations tracker
python manage.py migrate
gunicorn moedx.wsgi:application --bind 0.0.0.0:8008
How to install OpenPose on a GPU-enabled server
This assumes CUDA and CUDNN are already installed. We need cmake version at least 3.12 for CUDA 10
sudo apt-get purge cmake
wget https://cmake.org/files/v3.14/cmake-3.14.1.tar.gz
tar -xzvf cmake-3.14.1.tar.gz
cd cmake-3.14.1
./bootstrap
make -j4
sudo make install
Now download, build, and install OpenPose
git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose
cd openpose/
sudo ./scripts/ubuntu/install_cuda.sh
sudo ./scripts/ubuntu/install_cudnn.sh
sudo bash ./scripts/ubuntu/install_deps.sh
sudo apt-get install libopencv-dev
mkdir build
cd build
/usr/local/bin/cmake -DBUILD_PYTHON=ON ..
make -j`nproc`
sudo make install
To run OpenPose we also need a symbolic link to our installation directory, to get access to some model files that were downloaded as part of the build process:
sudo ln -s /home/ubuntu/openpose/ /openpose
TODO: Remove this symbolic link requirement. Either check in the model files as part of the FaceDetectionServer's source, or add a download step in the docker file.