October 2018
Intermediate to advanced
472 pages
10h 57m
English
We will implement preprocessing on our Docker image. We'll mount the project directory as a volume inside the Docker container (using a -v flag), and run the preprocessing script on the input data. The results will be written to a directory specified with command-line arguments.
The align_dlib.py file is sourced from CMU. It provides methods for detecting a face in an image, finding facial landmarks, and aligning these landmarks:
docker run -v $PWD:/facerecognition \-e PYTHONPATH=$PYTHONPATH:/facerecognition \-it hellorahulk/facerecognition python3 /facerecognition/facenet/preprocess.py \--input-dir /facerecognition/data \--output-dir /facerecognition/output/intermediate \--crop-dim 180
In the preceding command we are ...
Read now
Unlock full access