ljchang commited on
Commit
4f24672
·
verified ·
1 Parent(s): 0207115

Upload cross_tool_methodology.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. cross_tool_methodology.md +20 -3
cross_tool_methodology.md CHANGED
@@ -55,7 +55,7 @@ per-tool note); treat as indicative until a single-protocol recompute lands.
55
  | **OpenFace 3.0** | 0.488 | 8 | their `evaluation.py` | `openface3_disfaplus.json` |
56
  | **LibreFace** (research RepVGG) | 0.461 | 12 | truth ≥2, intensity ≥2 | `libreface_repvgg_disfaplus.json` |
57
  | **py-feat v1** (`Detector`, xgb) | 0.250 | 12 | truth ≥2, prob ≥0.5 | `pyfeat_disfaplus_au.json` |
58
- | **PyAFAR** | _n/a_ | 7 overlap | | not runnable (see notes) |
59
 
60
  **py-feat v2 (Detectorv2) leads** the held-out DISFA+ AU benchmark (0.54), ahead
61
  of OpenFace 3.0 (0.49) and LibreFace (0.46) — and recall DISFA+ is held out for
@@ -63,6 +63,14 @@ of OpenFace 3.0 (0.49) and LibreFace (0.46) — and recall DISFA+ is held out fo
63
  v1's xgb path is weaker here (0.25) on the strict 12-AU / ≥2 protocol; it's the
64
  legacy modular detector, and v2 is the recommended path.
65
 
 
 
 
 
 
 
 
 
66
  LibreFace also gives mean intensity **PCC = 0.73** (its native DISFA metric).
67
  A follow-up will recompute all tools on one AU set + threshold for an
68
  apples-to-apples table.
@@ -338,8 +346,17 @@ away from the torch stack):
338
  5. Non-commercial license; GPU only on Ubuntu/WSL2.
339
 
340
  Contrast: py-feat is one `pip install`, works headless, takes images or video,
341
- and reports all 20 AUs. [PyAFAR DISFA+ numbers — pending the conda env + a
342
- frame-to-video adapter; coverage limited to the 7 overlapping AUs.]
 
 
 
 
 
 
 
 
 
343
 
344
  ## Hardware notes
345
 
 
55
  | **OpenFace 3.0** | 0.488 | 8 | their `evaluation.py` | `openface3_disfaplus.json` |
56
  | **LibreFace** (research RepVGG) | 0.461 | 12 | truth ≥2, intensity ≥2 | `libreface_repvgg_disfaplus.json` |
57
  | **py-feat v1** (`Detector`, xgb) | 0.250 | 12 | truth ≥2, prob ≥0.5 | `pyfeat_disfaplus_au.json` |
58
+ | **PyAFAR** | 0.260 | **7 only** | occ ≥0.5, truth ≥2 | `pyafar_accuracy_disfaplus.json` |
59
 
60
  **py-feat v2 (Detectorv2) leads** the held-out DISFA+ AU benchmark (0.54), ahead
61
  of OpenFace 3.0 (0.49) and LibreFace (0.46) — and recall DISFA+ is held out for
 
63
  v1's xgb path is weaker here (0.25) on the strict 12-AU / ≥2 protocol; it's the
64
  legacy modular detector, and v2 is the recommended path.
65
 
66
+ **PyAFAR** now runs (its conda env rebuilt to its own declared TF-2.12 stack;
67
+ see notes) over all 57,150 frames, unmodified. It covers only **7 of the 12
68
+ DISFA AUs** (it has no AU05/09/20/25/26), and mean F1 over those 7 is **0.26** —
69
+ strong on the smile AUs (AU06 0.61, AU12 0.55) but failing AU01/AU04 (≈0). Its
70
+ video-only API required re-assembling DISFA+ stills into per-trial clips. The
71
+ 0.26 is **not comparable to the 12-AU numbers above** (different, easier AU
72
+ subset); it's reported on PyAFAR's own 7-AU overlap.
73
+
74
  LibreFace also gives mean intensity **PCC = 0.73** (its native DISFA metric).
75
  A follow-up will recompute all tools on one AU set + threshold for an
76
  apples-to-apples table.
 
346
  5. Non-commercial license; GPU only on Ubuntu/WSL2.
347
 
348
  Contrast: py-feat is one `pip install`, works headless, takes images or video,
349
+ and reports all 20 AUs.
350
+
351
+ **Resolved (the friction was the result).** We did get PyAFAR running: a conda
352
+ env rebuilt to its *own* declared stack (`tensorflow==2.12`, a working
353
+ `mediapipe.solutions`, `numpy<2`, matching protobuf/opencv — the shipped combo
354
+ was internally inconsistent), `download_models`, plus a frame→per-trial-video
355
+ adapter for its video-only API. Run unmodified over all 57,150 DISFA+ frames it
356
+ scores **mean F1 0.26 on its 7 overlapping AUs** (AU06 0.61, AU12 0.55; AU01/04
357
+ ≈0), and cannot predict 5 of the 12 DISFA AUs at all. Every obstacle above had
358
+ to be cleared just to get that partial number — the contrast with py-feat's one
359
+ `pip install` stands.
360
 
361
  ## Hardware notes
362