Ship the three eye-state models beside the face pair
2d106det for the eye contours, OCEC for open or closed, SGC for sunglasses — all three pinned to a batch of one by the same script as the pair, and installed by every packager so the eyes-open filter works out of the box. The two classifiers are MIT, code and weights; the README records their provenance, SGC's undocumented training set, and the hashes as fetched and as shipped.
This commit is contained in:
+7
-1
@@ -61,7 +61,13 @@ package() {
|
||||
# These live in LFS; a checkout without `git lfs pull` has ~130-byte
|
||||
# pointers here. Installing one produces a package whose face indexing
|
||||
# fails inside the graph loader on the user's machine, so refuse instead.
|
||||
for _m in scrfd_500m_640.onnx scrfd_2.5g_640.onnx scrfd_10g_640.onnx arcface_mbf_b1.onnx; do
|
||||
#
|
||||
# The last three are the eye-state models (docs/faces.md §17): landmarks,
|
||||
# open/closed, sunglasses. Optional to the app, which indexes without
|
||||
# them, but shipped beside the pair so the eyes-open filter works out of
|
||||
# the box.
|
||||
for _m in scrfd_500m_640.onnx scrfd_2.5g_640.onnx scrfd_10g_640.onnx arcface_mbf_b1.onnx \
|
||||
2d106det_b1.onnx ocec_s_b1.onnx sgc_l_48_b1.onnx; do
|
||||
_src="models/face/${_m}"
|
||||
if [[ "$(stat -c%s "${_src}")" -lt 100000 ]]; then
|
||||
echo "error: ${_m} is an LFS pointer, not a model — run: git lfs pull" >&2
|
||||
|
||||
@@ -157,7 +157,8 @@ modules:
|
||||
# inside the graph loader on the user's machine. Refuse instead, with the
|
||||
# command that fixes it.
|
||||
- |
|
||||
for m in scrfd_500m_640.onnx scrfd_2.5g_640.onnx scrfd_10g_640.onnx arcface_mbf_b1.onnx; do
|
||||
for m in scrfd_500m_640.onnx scrfd_2.5g_640.onnx scrfd_10g_640.onnx arcface_mbf_b1.onnx \
|
||||
2d106det_b1.onnx ocec_s_b1.onnx sgc_l_48_b1.onnx; do
|
||||
if [ "$(stat -c%s "models/face/$m")" -lt 100000 ]; then
|
||||
echo "error: $m is an LFS pointer, not a model — run: git lfs pull" >&2
|
||||
exit 1
|
||||
|
||||
@@ -70,7 +70,7 @@ Section "DarkRoom" SecMain
|
||||
File "${STAGE}\darkroom.exe"
|
||||
File "${STAGE}\LICENSE"
|
||||
|
||||
; The seven model files (four face, three scene), beside the executable,
|
||||
; The ten model files (seven face, three scene), beside the executable,
|
||||
; which is where `library::system_face_models_dirs` looks on Windows —
|
||||
; last, after the user's own directories, exactly as /usr/share is on Linux.
|
||||
SetOutPath "$INSTDIR\models"
|
||||
|
||||
Reference in New Issue
Block a user