File size: 1,630 Bytes
1de6f34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
license: apache-2.0
tags: [onnx, mediapipe, blendshapes, arkit, face-capture, qtmesheditor]
---

# Face blendshapes MLP-Mixer (ONNX)

Google MediaPipe's face blendshape model (MLP-Mixer), converted to ONNX.

- **Input** `[1,146,2]` — the 146-landmark subset as **pixel coords**
  (`x·imgW, y·imgH`).
- **Output** `[52]`**52 ARKit-compatible blendshape scores** in `[0,1]`,
  in MediaPipe order (`_neutral`, `browDownLeft`, … `jawOpen`, …
  `mouthSmileLeft/Right`, … `eyeBlinkLeft/Right`, …). These drive ARKit-style
  morph targets directly.

Converted with tf2onnx optimizers disabled (the optimized graph broke a
LayerNorm under ONNX Runtime — see the spike doc).

## License

Apache-2.0 — this graph is a direct ONNX conversion of a Google
[MediaPipe](https://developers.google.com/mediapipe) model (Apache-2.0 code
AND weights). Conversion + numerical-parity proof (vs the Python `mediapipe`
reference): [`scripts/export-facecap-onnx.py`](https://github.com/fernandotonon/QtMeshEditor/blob/master/scripts/export-facecap-onnx.py),
contract in [`docs/MOCAP_SPIKE.md`](https://github.com/fernandotonon/QtMeshEditor/blob/master/docs/MOCAP_SPIKE.md).

## How it is used

Mirror of one graph from [`fernandotonon/QtMeshEditor-models`](https://huggingface.co/fernandotonon/QtMeshEditor-models)
(`mocap/…`), which [QtMeshEditor](https://github.com/fernandotonon/QtMeshEditor)
downloads on first use for its **Performance Capture** feature (video/webcam →
facial morph + head + full-body skeletal animation, epic #869). This standalone
repo is for discoverability; the app fetches from the aggregate repo.