Lumonopolis commited on
Commit
ab2160d
·
verified ·
1 Parent(s): f839ae5

Initial v0.1.0 release weights and evaluation reports (private for review)

Browse files
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ - es
6
+ - fr
7
+ - de
8
+ - ko
9
+ - zh
10
+ - ja
11
+ tags:
12
+ - audio
13
+ - lip-sync
14
+ - viseme
15
+ - rhubarb
16
+ - onnx
17
+ - webgpu
18
+ - 2d-animation
19
+ ---
20
+
21
+ # lipsync-2d
22
+
23
+ Real-time causal streaming 2D lip-sync and viseme prediction model (`3.41M` parameters, `6.55 MB` FP16 / `3.57 MB` INT8 ONNX, Apache-2.0).
24
+
25
+ ## Model Description
26
+
27
+ - **Architecture**: 10-block Pure Causal ConvNeXt-TCN (`channels=288`, `kernel_size=5`, `dilations=(1,2,4,8,16,1,2,4,8,16)`, 5.0 s receptive field, `lookahead_frames=2` = 40 ms bounded lookahead, zero recurrent/GRU ops for WebGPU/WASM speed).
28
+ - **Input**: 16 kHz mono audio → speech-gated RMS normalization (`-18 dBFS` target above `-46 dBFS` gate, `+20 dB` max cap) → 80-bin causal Slaney Log-Mel spectrogram (25 ms periodic Hann window, 10 ms hop, 512 FFT, 64–7800 Hz, fixed scaling `(logMel + 6.0) / 4.0`).
29
+ - **Outputs (50 Hz / 20 ms step)**:
30
+ - `viseme15_logits`: 15 canonical Oculus visemes (`sil, PP, FF, TH, DD, kk, CH, SS, nn, RR, aa, E, ih, oh, ou`)
31
+ - `rhubarb9_logits`: 9 Rhubarb mouth shapes (`X, A, B, C, D, E, F, G, H`) with lateral `/l/` mapped directly to `H`
32
+ - `mouth_curves`: 3 continuous sigmoid curves in `[0, 1]` (`jawOpen, lipRound, lipClose`)
33
+
34
+ ## Training Data & Distillation
35
+
36
+ Trained exclusively on official `train` partitions (`27,427` train / `3,481` validation utterances, inverse-sqrt language-balanced sampling) and evaluated on strictly speaker-disjoint official `test` partitions (`3,600` utterances: `1,500` LibriSpeech `test-clean` + `2,100` FLEURS `test`) from 100% commercially permissive (CC0-1.0 / CC-BY-4.0) corpora:
37
+ - LibriSpeech `train-clean-100` / `dev-clean` / `test-clean` (CC-BY-4.0)
38
+ - Google FLEURS (`en_us, es_419, cmn_hans_cn, ko_kr, fr_fr, de_de, ja_jp`, CC-BY-4.0)
39
+ - Mozilla Common Voice 19 (`ja, fr, de, es, zh-CN`, CC0-1.0)
40
+ - Zeroth-Korean (`ko`, CC-BY-4.0)
41
+
42
+ Teacher supervision was extracted using `facebook/wav2vec2-xlsr-53-espeak-cv-ft` with 100% audited 392-token IPA → 15-viseme / 9-Rhubarb mapping, energy-VAD midpoint-span CTC blank expansion, `±4.5` semitone Mel pitch-warping, gain/noise/SpecAugment perturbations, and 12% synthetic silence/room-noise negative segments.
43
+
44
+ ## Evaluation Results
45
+
46
+ ### 1. Human-Annotated TIMIT Phonemes (Zero-Shot vs Official Rhubarb v1.14.0)
47
+
48
+ `90` distinct balanced Male/Female speakers (`45` Male / `45` Female, 1 utterance per speaker) from `kylelovesllms/timit_asr` official `test` split (hand-annotated 61-phone timestamps, zero training or teacher overlap):
49
+ - **9-Rhubarb Macro-F1 (raw / Viterbi)**: **`0.615 / 0.616`** vs Official `Rhubarb v1.14.0` (`-r phonetic`): `0.432` (**`+18.3 / +18.4 pts`**)
50
+ - **Bilabial `A` (`p/b/m`) F1**: **`0.557 / 0.555`** vs Rhubarb `0.323`
51
+ - **Labiodental `G` (`f/v`) F1**: `0.565 / 0.568` vs Rhubarb `0.583`
52
+ - **Lateral `H` (`l`) F1**: **`0.589 / 0.615`** vs Rhubarb `0.283`
53
+ - **Boundary Onset MAE**: **`19.07 ms / 25.22 ms`** vs Rhubarb `44.55 ms`
54
+ - **Silence FP (jaw-flap)**: **`5.36% / 5.70%`** vs Rhubarb `32.53%`
55
+ - **Female / Male Macro-F1 (0 st)**: **`0.611 (F) / 0.619 (M)`** vs Rhubarb `0.427 (F) / 0.438 (M)`
56
+ - **High-Pitch `+4` Semitones Macro-F1**: **`0.496`** (`-19.36%` rel. drop; Female `0.466`) vs Rhubarb `0.344` (`-20.40%` rel. drop; Female `0.277`)
57
+
58
+ ### 2. Speaker-Disjoint 7-Language Official Test Split (3,600 Utterances)
59
+
60
+ - **9-Rhubarb Macro-F1**: **`0.736`** (Weighted-F1 **`0.859`**) vs uLipSync-style MFCC baseline `0.271` (Weighted-F1 `0.542`)
61
+ - **15-Oculus Macro-F1**: **`0.718`** (Weighted-F1 **`0.829`**)
62
+ - **Bilabial `A` (`p/b/m`) F1**: **`0.733`** (vs MFCC `0.131`)
63
+ - **Labiodental `G` (`f/v`) F1**: **`0.656`** (vs MFCC `0.054`)
64
+ - **Lateral `H` (`l`) F1**: **`0.685`** (vs MFCC `0.064`)
65
+ - **Boundary Onset MAE**: **`11.49 ms`** (vs MFCC `21.63 ms`)
66
+ - **High-Pitch (`+4` semitones) Relative Macro-F1 Drop**: **`4.59%`**
67
+ - **Dedicated Silence / Room-Noise False Positive Rate**: **`0.00%`** (overall test silence FP **`1.93%`** vs MFCC `8.25%`)
68
+ - **Per-Language Macro-F1**: `es=0.791`, `en=0.756`, `fr=0.702`, `de=0.683`, `zh=0.672`, `ko=0.668`, `ja=0.611`
69
+
70
+ ## Provided ONNX Files
71
+
72
+ - `onnx/lipsync_student_offline_fp16.onnx` (`6.55 MB`, recommended for browser & CLI)
73
+ - `onnx/lipsync_student_streaming_fp16.onnx` (`6.54 MB`, stateful streaming with `h_in=[1,1,1]`, `conv_cache_in=[1,288,248]`, `1.82 ms`/frame = `11.0×` real-time in 48 kHz WASM)
74
+ - `onnx/lipsync_student_offline_int8.onnx` (`3.57 MB`) & `onnx/lipsync_student_streaming_int8.onnx` (`3.55 MB`)
75
+ - `onnx/lipsync_student_offline_fp32.onnx` (`13.05 MB`) & `onnx/lipsync_student_streaming_fp32.onnx` (`13.03 MB`)
76
+
77
+ ## Limitations & Intended Use
78
+
79
+ Intended for 2D character animation, VTuber/Live2D rigs, Godot/Unity/Blender pipelines, and client-side browser lip-sync. Multilingual `3,600`-utterance test scores are evaluated against `wav2vec2-xlsr-53-espeak-cv-ft` IPA alignments and supplemented by zero-shot human hand-annotated TIMIT evaluation. Performance is strongest on Spanish, English, and French and lower on Japanese (`0.611`) and heavily overlapping/musical audio.
eval_results.json ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "params": 3407643,
3
+ "split_counts": {
4
+ "train": 27427,
5
+ "val": 3481,
6
+ "test": 3600
7
+ },
8
+ "student_metrics": {
9
+ "rhubarb9_macro_f1": 0.736384,
10
+ "rhubarb9_weighted_f1": 0.858795,
11
+ "rhubarb9_per_class_f1": {
12
+ "X": 0.971677,
13
+ "A": 0.732636,
14
+ "B": 0.841976,
15
+ "C": 0.667849,
16
+ "D": 0.750188,
17
+ "E": 0.681929,
18
+ "F": 0.640313,
19
+ "G": 0.656131,
20
+ "H": 0.684755
21
+ },
22
+ "bilabial_A_f1": 0.732636,
23
+ "labiodental_G_f1": 0.656131,
24
+ "silence_fp_jaw_flap_pct": 1.9307,
25
+ "viseme15_macro_f1": 0.718408,
26
+ "viseme15_weighted_f1": 0.829253,
27
+ "viseme15_per_class_f1": {
28
+ "sil": 0.971385,
29
+ "PP": 0.728964,
30
+ "FF": 0.653845,
31
+ "TH": 0.595509,
32
+ "DD": 0.687194,
33
+ "kk": 0.710736,
34
+ "CH": 0.765417,
35
+ "SS": 0.825527,
36
+ "nn": 0.726895,
37
+ "RR": 0.652942,
38
+ "aa": 0.757421,
39
+ "E": 0.676538,
40
+ "ih": 0.719288,
41
+ "oh": 0.664343,
42
+ "ou": 0.640123
43
+ },
44
+ "bilabial_PP_f1": 0.728964,
45
+ "labiodental_FF_f1": 0.653845,
46
+ "boundary_onset_mae_ms": 11.4897,
47
+ "high_pitch_rhubarb9_macro_f1": 0.702616,
48
+ "high_pitch_relative_f1_drop_pct": 4.5857,
49
+ "dedicated_silence_fp_pct": 0.0,
50
+ "per_language_r9_macro_f1": {
51
+ "en": 0.755546,
52
+ "fr": 0.701965,
53
+ "zh": 0.671562,
54
+ "de": 0.683113,
55
+ "ko": 0.668157,
56
+ "es": 0.7909,
57
+ "ja": 0.611264
58
+ }
59
+ },
60
+ "mfcc_baseline_metrics": {
61
+ "rhubarb9_macro_f1": 0.270693,
62
+ "rhubarb9_weighted_f1": 0.541998,
63
+ "rhubarb9_per_class_f1": {
64
+ "X": 0.866063,
65
+ "A": 0.130873,
66
+ "B": 0.33369,
67
+ "C": 0.253833,
68
+ "D": 0.398006,
69
+ "E": 0.166822,
70
+ "F": 0.16882,
71
+ "G": 0.054266,
72
+ "H": 0.063865
73
+ },
74
+ "bilabial_A_f1": 0.130873,
75
+ "labiodental_G_f1": 0.054266,
76
+ "silence_fp_jaw_flap_pct": 8.2536,
77
+ "boundary_onset_mae_ms": 21.6317
78
+ },
79
+ "onnx_benchmarks": {
80
+ "offline_fp32": {
81
+ "onnx_size_mb": 13.046,
82
+ "ms_per_20ms_frame": 0.164
83
+ },
84
+ "streaming_fp32": {
85
+ "onnx_size_mb": 13.0342,
86
+ "ms_per_20ms_frame": 2.3177
87
+ },
88
+ "offline_fp16": {
89
+ "onnx_size_mb": 6.5466,
90
+ "ms_per_20ms_frame": 0.1209
91
+ },
92
+ "streaming_fp16": {
93
+ "onnx_size_mb": 6.5352,
94
+ "ms_per_20ms_frame": 1.8505
95
+ },
96
+ "offline_int8": {
97
+ "onnx_size_mb": 3.5739,
98
+ "ms_per_20ms_frame": 0.0883
99
+ },
100
+ "streaming_int8": {
101
+ "onnx_size_mb": 3.5549,
102
+ "ms_per_20ms_frame": 1.0991
103
+ }
104
+ }
105
+ }
onnx/lipsync_student_offline_fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efd4b264a05ff79bb7f202387f247cacd0a9d4b0f6002b60e0819ac109861f01
3
+ size 6864641
onnx/lipsync_student_offline_fp32.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68d62f6a738ec41ce09b5caeed7fe947ef01bc45d328641f696266c22a38952f
3
+ size 13679725
onnx/lipsync_student_offline_int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:918aef964e99ac49c620693b4e270940cca803481eeaee63cfb82c5ad877a359
3
+ size 3747496
onnx/lipsync_student_streaming_fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75335eb2742a322f89c31a4c7e3a12b18b53b288bd31a9afdb3909c08d01ed28
3
+ size 6852621
onnx/lipsync_student_streaming_fp32.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:25e7145e9cc408b82d33a2972db1271a4fe315b8868fbe860c862d4d0f5e5782
3
+ size 13667369
onnx/lipsync_student_streaming_int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:adb50252cf551e0d3f6e4352a9ab5e61e557c5a8a62b87da729f84f576164dc1
3
+ size 3727597
results_timit_rhubarb.json ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": "kylelovesllms/timit_asr (official test split, human hand-annotated 61-phone timestamps)",
3
+ "model": "lipsync2d.onnx",
4
+ "n_unique_speakers": 90,
5
+ "unique_speakers_by_sex": {
6
+ "M": 45,
7
+ "F": 45
8
+ },
9
+ "normal_0st": {
10
+ "n_utterances": 90,
11
+ "lipsync_2d_raw": {
12
+ "rhubarb9_macro_f1": 0.615086,
13
+ "rhubarb9_weighted_f1": 0.665867,
14
+ "rhubarb9_per_class_f1": {
15
+ "X": 0.775987,
16
+ "A": 0.556929,
17
+ "B": 0.761866,
18
+ "C": 0.492208,
19
+ "D": 0.648155,
20
+ "E": 0.537936,
21
+ "F": 0.608607,
22
+ "G": 0.56465,
23
+ "H": 0.589438
24
+ },
25
+ "bilabial_A_f1": 0.556929,
26
+ "labiodental_G_f1": 0.56465,
27
+ "silence_fp_jaw_flap_pct": 5.3563,
28
+ "boundary_onset_mae_ms": 19.0741
29
+ },
30
+ "lipsync_2d_viterbi": {
31
+ "rhubarb9_macro_f1": 0.615695,
32
+ "rhubarb9_weighted_f1": 0.662806,
33
+ "rhubarb9_per_class_f1": {
34
+ "X": 0.777238,
35
+ "A": 0.554611,
36
+ "B": 0.754441,
37
+ "C": 0.456655,
38
+ "D": 0.656118,
39
+ "E": 0.546485,
40
+ "F": 0.61233,
41
+ "G": 0.56799,
42
+ "H": 0.615385
43
+ },
44
+ "bilabial_A_f1": 0.554611,
45
+ "labiodental_G_f1": 0.56799,
46
+ "silence_fp_jaw_flap_pct": 5.7002,
47
+ "boundary_onset_mae_ms": 25.2192
48
+ },
49
+ "lipsync_2d_by_sex_macro_f1": {
50
+ "M": 0.618793,
51
+ "F": 0.611392
52
+ },
53
+ "rhubarb_v1_14_phonetic": {
54
+ "rhubarb9_macro_f1": 0.43212,
55
+ "rhubarb9_weighted_f1": 0.492776,
56
+ "rhubarb9_per_class_f1": {
57
+ "X": 0.792954,
58
+ "A": 0.322751,
59
+ "B": 0.577949,
60
+ "C": 0.270665,
61
+ "D": 0.254312,
62
+ "E": 0.46433,
63
+ "F": 0.340321,
64
+ "G": 0.582677,
65
+ "H": 0.283117
66
+ },
67
+ "bilabial_A_f1": 0.322751,
68
+ "labiodental_G_f1": 0.582677,
69
+ "silence_fp_jaw_flap_pct": 32.5307,
70
+ "boundary_onset_mae_ms": 44.5473
71
+ },
72
+ "rhubarb_by_sex_macro_f1": {
73
+ "M": 0.437864,
74
+ "F": 0.426546
75
+ }
76
+ },
77
+ "high_pitch_plus4st": {
78
+ "n_utterances": 90,
79
+ "lipsync_2d_raw": {
80
+ "rhubarb9_macro_f1": 0.495992,
81
+ "rhubarb9_weighted_f1": 0.564905,
82
+ "rhubarb9_per_class_f1": {
83
+ "X": 0.646823,
84
+ "A": 0.360816,
85
+ "B": 0.685149,
86
+ "C": 0.385185,
87
+ "D": 0.607706,
88
+ "E": 0.438165,
89
+ "F": 0.478481,
90
+ "G": 0.396442,
91
+ "H": 0.465162
92
+ },
93
+ "bilabial_A_f1": 0.360816,
94
+ "labiodental_G_f1": 0.396442,
95
+ "silence_fp_jaw_flap_pct": 4.9631,
96
+ "boundary_onset_mae_ms": 34.7972
97
+ },
98
+ "lipsync_2d_viterbi": {
99
+ "rhubarb9_macro_f1": 0.490334,
100
+ "rhubarb9_weighted_f1": 0.56248,
101
+ "rhubarb9_per_class_f1": {
102
+ "X": 0.652839,
103
+ "A": 0.341098,
104
+ "B": 0.686028,
105
+ "C": 0.355204,
106
+ "D": 0.618813,
107
+ "E": 0.440926,
108
+ "F": 0.454308,
109
+ "G": 0.40052,
110
+ "H": 0.463265
111
+ },
112
+ "bilabial_A_f1": 0.341098,
113
+ "labiodental_G_f1": 0.40052,
114
+ "silence_fp_jaw_flap_pct": 5.6511,
115
+ "boundary_onset_mae_ms": 42.1958
116
+ },
117
+ "lipsync_2d_by_sex_macro_f1": {
118
+ "M": 0.524765,
119
+ "F": 0.465931
120
+ },
121
+ "rhubarb_v1_14_phonetic": {
122
+ "rhubarb9_macro_f1": 0.343971,
123
+ "rhubarb9_weighted_f1": 0.429343,
124
+ "rhubarb9_per_class_f1": {
125
+ "X": 0.82586,
126
+ "A": 0.205501,
127
+ "B": 0.54234,
128
+ "C": 0.243218,
129
+ "D": 0.141127,
130
+ "E": 0.289445,
131
+ "F": 0.265487,
132
+ "G": 0.365264,
133
+ "H": 0.2175
134
+ },
135
+ "bilabial_A_f1": 0.205501,
136
+ "labiodental_G_f1": 0.365264,
137
+ "silence_fp_jaw_flap_pct": 26.2408,
138
+ "boundary_onset_mae_ms": 47.6936
139
+ },
140
+ "rhubarb_by_sex_macro_f1": {
141
+ "M": 0.416869,
142
+ "F": 0.27739
143
+ }
144
+ },
145
+ "lipsync_2d_raw_plus4st_rel_drop_pct": 19.36,
146
+ "lipsync_2d_viterbi_plus4st_rel_drop_pct": 20.36,
147
+ "rhubarb_v1_14_phonetic_plus4st_rel_drop_pct": 20.4
148
+ }