docker-compose.yml 497 字节
Newer Older
1 2 3 4 5 6 7 8 9
version: '2.3'

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