In advance, you should clone the repository and enter directory by following the steps below.
git clone https://github.com/kekeho/gingerbreadman
cd gingerbreadman
git lfs pull
Just three steps.
docker-compose build # CPU only
docker-compose -f docker-compose-gpu.yml build # with Nvidia GPU
echo "DB_PASSWORD=password" > .env
docker-compose up # CPU only
docker-compose -f docker-compose-gpu.yml up # with Nvidia GPU
cd ./front
npm init
os: "linux" or "mac" or "win"
npm run build:[os]
docker-compose -f docker-compose-worker.yml build # amd64
docker-compose -f docker-compose-worker-arm.yml build # arm (tested on raspberry pi 3 64bit)
# arm with GPU (tested on jetson nano)
xargs -n 1 cp /usr/lib/aarch64-linux-gnu/libcudnn.so <<< "./services/face_location ./services/face_encoding"
docker-compose -f docker-compose-worker-arm-gpu.yml build
Edit worker.env
NGINX_HOST=192.168.x.x
NGINX_PORT=8000
service: sex_detection or age_prediction or face_encoding or face_location
docker-compose -f docker-compose-worker.yml up # amd64
docker-compose -f docker-compose-worker-arm.yml up # arm (tested on raspberry pi 3 64bit)
docker-compose -f docker-compose-worker-arm-gpu.yml run [service] # arm with GPU (tested on jetson nano) It is recommended to run only one container at a time.