face_recognition Docker & Self-Hosted Deployment

GitHub

The world's simplest facial recognition api for Python and the command line

56,536 stars Python Python 1 file ยท ~8,983 tokens #face-detection#face-recognition#machine-learning#python
RAW Compose
1. Pull Image (DOCKERHUB) docker pull library/face_recognition
2. Docker Run (1-Click Launch) docker run -d --name face_recognition --restart always face_recognition
3. Podman Run podman run -d --name face_recognition --restart always face_recognition
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/library/face_recognition:latest
5. ORAS Pull (OCI Artifact) oras pull face_recognition
6. Compose Deployment docker compose up -d
docker-compose.yml
Download .yml
version: '2.3'

services:
  face_recognition:
    image: face_recognition
    container_name: face_recognition
    working_dir: /face_recognition/examples
    build:
      context: .
      #Uncomment this line to run the example on the GPU (requires Nvidia-Docker)
      # dockerfile: Dockerfile.gpu 
    command: python3 -u find_faces_in_picture_cnn.py
    volumes:
      - ./:/face_recognition
    #Uncomment this line to run the example on the GPU (requires Nvidia-Docker)
    # runtime: nvidia