ljchang commited on
Commit
3f67f30
·
verified ·
1 Parent(s): 1a585a6

Upload cross_tool_methodology.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. cross_tool_methodology.md +32 -11
cross_tool_methodology.md CHANGED
@@ -77,6 +77,18 @@ from py-feat's `feat.evaluation` loaders into shared manifests
77
  because each tool's *own* face detector decides which faces it finds — that
78
  detection robustness is itself part of the comparison.
79
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  ### Emotion — 7-class, top-1 accuracy / macro-F1
81
 
82
  Held-out **AffectNet-val** (994 imgs, classes 0–6) and **RAF-DB test** (3,068).
@@ -100,7 +112,7 @@ leads on both accuracy and the balanced macro-F1 (LibreFace's 0.646 accuracy but
100
  arousal at all** — so this isn't a head-to-head, it's a capability the others
101
  lack. On AffectNet-val: **valence CCC 0.535, arousal CCC 0.482**.
102
 
103
- ### Gaze — Columbia Gaze, mean angular error (head-frontal subset, 1,176 imgs)
104
 
105
  Each tool emits gaze in its own (yaw, pitch) frame, sign, and unit, mostly
106
  undocumented. We resolve that I/O convention **identically and in every tool's
@@ -108,16 +120,25 @@ favor** — the single best discrete (axis × sign × unit) mapping to the GT fr
108
  (`shared/gaze_convention.py`) — so no tool is penalised for an opaque output
109
  convention. The same procedure is applied to py-feat.
110
 
111
- | Tool | angular MAE | median |
112
- |------|:---:|:---:|
113
- | **py-feat v2** | **2.72°** | 2.21° |
114
- | **OpenFace 3.0** | 12.05° | 11.34° |
115
- | **LibreFace** | 15.40° | 14.33° |
116
-
117
- py-feat's L2CS gaze is dramatically more accurate on Columbia. (The Columbia
118
- loader's yaw-sign convention was corrected in `feat.evaluation` as part of this
119
- work — it had previously reported 17.5° from a sign mismatch, not a model error;
120
- py-feat's stock harness now reports the same 2.72°.)
 
 
 
 
 
 
 
 
 
121
 
122
  > Reproduce: `tools/<tool>/run_accuracy.py` (OF3/PyAFAR), `run_modalities.py`
123
  > (LibreFace), `run_gaze.py` + `run_pyfeat_modalities.py` (py-feat). Consolidated
 
77
  because each tool's *own* face detector decides which faces it finds — that
78
  detection robustness is itself part of the comparison.
79
 
80
+ **Strictly out-of-sample.** Every number is on a held-out **validation/test**
81
+ split — no tool is ever scored on images from its own training set:
82
+
83
+ | Dataset | Split scored | Held out for |
84
+ |---|---|---|
85
+ | AffectNet | official **validation** (`validation_aligned.csv`) | all (tools train on AffectNet-train) |
86
+ | RAF-DB | **test** split | all (tools train on RAF-train) |
87
+ | DISFA+ | full posed-peak eval set | **all** — no tool trains on DISFA+ (we avoid DISFA, which several train on) |
88
+ | Columbia Gaze | full eval set | all |
89
+ | MPIIFaceGaze | held-out subsample | all |
90
+ | Gaze360 | **`bench`/test** split | all — incl. py-feat, whose L2CS trains only on Gaze360-train |
91
+
92
  ### Emotion — 7-class, top-1 accuracy / macro-F1
93
 
94
  Held-out **AffectNet-val** (994 imgs, classes 0–6) and **RAF-DB test** (3,068).
 
112
  arousal at all** — so this isn't a head-to-head, it's a capability the others
113
  lack. On AffectNet-val: **valence CCC 0.535, arousal CCC 0.482**.
114
 
115
+ ### Gaze — mean angular error across three datasets
116
 
117
  Each tool emits gaze in its own (yaw, pitch) frame, sign, and unit, mostly
118
  undocumented. We resolve that I/O convention **identically and in every tool's
 
120
  (`shared/gaze_convention.py`) — so no tool is penalised for an opaque output
121
  convention. The same procedure is applied to py-feat.
122
 
123
+ | Tool | Columbia (1.2k) | MPIIFaceGaze (3k) | Gaze360 test (2.5k) |
124
+ |------|:---:|:---:|:---:|
125
+ | **py-feat v2** | **2.72°** | **2.80°** | **9.42°** |
126
+ | **OpenFace 3.0** | 12.05° | 7.03° | 41.09° |
127
+ | **LibreFace** | 15.40° | 19.49° | 32.08° |
128
+
129
+ py-feat's L2CS gaze leads on all three, and is strikingly stable (~2.7–2.8°) on
130
+ the two in-the-wild/lab sets where the competitors swing widely. Two caveats,
131
+ both stated rather than hidden:
132
+
133
+ - **Columbia loader fix.** The Columbia yaw-sign convention was corrected in
134
+ `feat.evaluation` as part of this work (it had reported 17.5° from a sign
135
+ mismatch, not a model error); py-feat's stock harness now reports 2.72°.
136
+ - **Gaze360 is in-distribution for py-feat.** Its L2CS model trains on
137
+ Gaze360-*train*; we score the held-out `bench`/test split (no train leakage),
138
+ but the *distribution* is still home-field for py-feat and out-of-distribution
139
+ for OF3/LibreFace — so read Gaze360 as "how far OOD pushes each tool" (OF3
140
+ collapses to 41° on the ±170° poses), not a like-for-like ranking. Columbia
141
+ and MPIIFaceGaze are held out for everyone equally.
142
 
143
  > Reproduce: `tools/<tool>/run_accuracy.py` (OF3/PyAFAR), `run_modalities.py`
144
  > (LibreFace), `run_gaze.py` + `run_pyfeat_modalities.py` (py-feat). Consolidated