# Face models The shape-fixed SCRFD detector and ArcFace/MobileFaceNet embedder, in LFS. One copy, packaged by every platform: | Platform | How it ships | Where it lands | |---|---|---| | Android | `assemble-apk.sh` bundles them as APK assets; `android_main` unpacks on first launch | the shared user data directory | | Arch | `PKGBUILD` installs them | `/usr/share/darkroom/models/` | `library::face_models` searches the account's own directory, then the shared user directory, then `$XDG_DATA_DIRS` — so a pair the user placed by hand always outranks the packaged one. scrfd_500m_640.onnx 2.5 MB arcface_mbf_b1.onnx 13 MB **A clone without git-lfs gets a ~130-byte pointer where each model should be.** Both packagers check for exactly that and refuse, rather than shipping the pointer and failing inside tract on the user's machine. Fix it with `git lfs pull`. These are not what InsightFace ships. They came from `buffalo_sc.zip` and `buffalo_s.zip` on the InsightFace v0.7 release with their input dimensions pinned, because tract cannot parse either graph while they are dynamic: ./tools/fix-face-model-shapes.sh det_500m.onnx models/face/scrfd_500m_640.onnx --input input.1=1,3,640,640 ./tools/fix-face-model-shapes.sh w600k_mbf.onnx models/face/arcface_mbf_b1.onnx --dim None=1 The weights carry a non-commercial research-only grant. They are here because this is a private repository and self-installed builds; they come back out before anything is published, and the restriction binds whoever uses the app, not only the project. docs/faces.md §2.2a is the decision.