TadasBaltrusaitis / OpenFace

OpenFace – a state-of-the art tool intended for facial landmark detection, head pose estimation, facial action unit recognition, and eye-gaze estimation.
Other
6.72k stars 1.82k forks source link

Copy models after downloading #987

Open tashrifbillah opened 2 years ago

tashrifbillah commented 2 years ago

Models are downloaded somewhere other than the location expected by binaries: build/bin/model/patch_experts/

https://github.com/TadasBaltrusaitis/OpenFace/blob/3d4b5cf8d96138be42bed229447f36cbb09a5a29/download_models.sh#L1-L7

So after ./download_models.sh, I had to copy them:

cp lib/local/LandmarkDetector/model/patch_experts/cenpatches*.dat build/bin/model/patch_experts/

So we should ask people to ./download_models.sh after building the code. Also, the first line should be modified to accept a directory ./download_models.sh path/to/build/:

https://github.com/TadasBaltrusaitis/OpenFace/blob/3d4b5cf8d96138be42bed229447f36cbb09a5a29/download_models.sh#L1

cd $1/bin/model/patch_experts