SceneWorks commited on
Commit
4e65de9
·
verified ·
1 Parent(s): bc9b7df

Rehost MediaPipe FaceMesh v2 as native safetensors fx-program

Browse files
Files changed (2) hide show
  1. README.md +24 -0
  2. face_landmarks_detector.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: sceneworks
4
+ tags:
5
+ - face-landmarks
6
+ - mediapipe
7
+ - facemesh
8
+ ---
9
+
10
+ # MediaPipe FaceMesh v2 (SceneWorks native rehost)
11
+
12
+ Native safetensors rehost of the MediaPipe FaceMesh v2 face-landmark detector, for SceneWorks' MLX and Candle training backends (frozen, differentiable face-landmark loss for character LoRA training).
13
+
14
+ ## Provenance
15
+ - Source: [py-feat/mp_facemesh_v2](https://huggingface.co/py-feat/mp_facemesh_v2) at revision `39eb85054cf76fe0f57b7e12d6765ae89d89f2b5`, file `face_landmarks_detector_Nx3x256x256_onnx.pth` (an onnx2torch GraphModule of Google's MediaPipe FaceMesh v2 landmark model).
16
+ - License: Apache-2.0, as stated by the source repository.
17
+ - Converted with `crates/media/mlx-gen/tools/convert_mp_facemesh_v2.py` (SceneWorks inference repo, commit `1d87a8eb2`), which lowers the FX graph to an "fx-program" stored in the safetensors metadata (`program`) alongside the 281 parameter tensors.
18
+
19
+ ## Verification
20
+ - Self-check (lowered program re-executed against the torch module): max abs error 0.0.
21
+ - Native executors vs torch on a fixed seeded input: MLX max abs 3.09e-4, Candle max abs 2.86e-4 (output magnitude ~216, ≈1.4e-6 relative).
22
+ - Input: N×3×256×256; output0: N×1×1×1434 (478 landmarks × 3).
23
+
24
+ `face_landmarks_detector.safetensors` sha256: `94e0dda4bb58733fc7454997868232bdcc2b11531a18d2bbfec5479c75f574f4`
face_landmarks_detector.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94e0dda4bb58733fc7454997868232bdcc2b11531a18d2bbfec5479c75f574f4
3
+ size 4997792