How ageitgey/face_recognition_models works
This is a small Python data package, not a face-recognition engine: it provides four dlib model files and functions that return their installed paths. The principal workflow is for the external face_recognition package to use this package’s model assets; callers can obtain each asset’s path through the corresponding locator function. The README documents the package’s role, and the excerpted initializer shows the path mappings. No model inference or storage service is implemented here.
Main entry points: __init__.py Model location API · shape_predictor_68_face_landmarks.dat 68-point landmarks · shape_predictor_5_face_landmarks.dat 5-point landmarks · dlib_face_recognition_resnet_model_v1.dat Recognition ResNet
Components 6
Other components
- face_recognition
- Model location API
face_recognition_models/__init__.py - 68-point landmarks
face_recognition_models/models/shape_predictor_68_face_landmarks.dat - 5-point landmarks
face_recognition_models/models/shape_predictor_5_face_landmarks.dat - Recognition ResNet
face_recognition_models/models/dlib_face_recognition_resnet_model_v1.dat - CNN face detector
face_recognition_models/models/mmod_human_face_detector.dat
Connections 5
- face_recognition → Model location API: uses models
README.rst - Model location API → 68-point landmarks: locates
face_recognition_models/__init__.py - Model location API → 5-point landmarks: locates
face_recognition_models/__init__.py - Model location API → Recognition ResNet: locates
face_recognition_models/__init__.py - Model location API → CNN face detector: locates
face_recognition_models/__init__.py