initialneil commited on
Commit
a271655
·
verified ·
1 Parent(s): da09765

Document the DPE face path alongside the SMPL-X one

Browse files
Files changed (1) hide show
  1. README.md +79 -0
README.md CHANGED
@@ -70,6 +70,7 @@ Browse the fitted result frame by frame in the **Data** tab above: one row per
70
  | Image size | 2048 x 1500 RGB, matted (black background) plus a per-pixel alpha matte |
71
  | Frame rate | 22 fps |
72
  | Registration | pure SMPL-X, neutral, `num_betas=300`, `num_expression_coeffs=100`, `use_pca=False`, `flat_hand_mean=False`, `use_face_contour=True` |
 
73
  | Per capture | ~2 GiB of video + one consolidated `smplx.npz` + calibration + QC preview |
74
 
75
  ### How the captures are meant to be used
@@ -103,6 +104,8 @@ data/<PxCy>/
103
  cameras.json the capture calibration (32 rigs x 1 camera)
104
  capture.json machine-readable capture card (sizes, conventions)
105
  preview.jpg one 32-view QC contact sheet
 
 
106
  previews/
107
  <PxCy>_f<frame:08d>.jpg QC contact sheets, one per sampled frame
108
  metadata.jsonl the table rendered in the Data tab
@@ -112,6 +115,7 @@ scripts/
112
  dreams_to_actorshq.py convert a capture into an ActorsHQ-format tree
113
  verify_alignment.py re-measure the video<->SMPL-X frame offset
114
  prepare_training.py decode into an AvatarReX / DEGAS training layout
 
115
  upload_capture.sh packaging + upload pipeline (for maintainers)
116
  ```
117
 
@@ -438,6 +442,78 @@ byte-identical decoded RGB and masks, identical SMPL-X tensors.
438
 
439
  ---
440
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
441
  ## How the registration was produced
442
 
443
  [Holistic-Multiview-Tracker](https://github.com/initialneil/Holistic-Multiview-Tracker),
@@ -460,6 +536,9 @@ rendered on every 100th frame with the mesh rasterised through the true calibrat
460
  ## Related
461
 
462
  - [DEGAS](https://initialneil.github.io/DEGAS): Detailed Expressions on Full-Body Gaussian Avatars (3DV 2025), which introduced these captures as the DREAMS-Avatar dataset
 
 
 
463
  - [Holistic-Tracker](https://github.com/initialneil/Holistic-Tracker): the monocular counterpart
464
 
465
  ## Licence
 
70
  | Image size | 2048 x 1500 RGB, matted (black background) plus a per-pixel alpha matte |
71
  | Frame rate | 22 fps |
72
  | Registration | pure SMPL-X, neutral, `num_betas=300`, `num_expression_coeffs=100`, `use_pca=False`, `flat_hand_mean=False`, `use_face_contour=True` |
73
+ | Face control | **both** paths shipped: the fitted SMPL-X expression + jaw, and per-frame 512-d DPE codes in `dpe/` ([details](#driving-the-face-smpl-x-expression-or-dpe-codes)) |
74
  | Per capture | ~2 GiB of video + one consolidated `smplx.npz` + calibration + QC preview |
75
 
76
  ### How the captures are meant to be used
 
104
  cameras.json the capture calibration (32 rigs x 1 camera)
105
  capture.json machine-readable capture card (sizes, conventions)
106
  preview.jpg one 32-view QC contact sheet
107
+ dpe/dpe-multi-faces.zip per-frame DPE expression codes (optional face path)
108
+ dpe/dpe_meta.json which cameras, reference frame, crop, per-cam stats
109
  previews/
110
  <PxCy>_f<frame:08d>.jpg QC contact sheets, one per sampled frame
111
  metadata.jsonl the table rendered in the Data tab
 
115
  dreams_to_actorshq.py convert a capture into an ActorsHQ-format tree
116
  verify_alignment.py re-measure the video<->SMPL-X frame offset
117
  prepare_training.py decode into an AvatarReX / DEGAS training layout
118
+ extract_dpe_codes.py regenerate the DPE codes yourself
119
  upload_capture.sh packaging + upload pipeline (for maintainers)
120
  ```
121
 
 
442
 
443
  ---
444
 
445
+ ## Driving the face: SMPL-X expression, or DPE codes
446
+
447
+ This dataset ships what you need for **both** ways of animating the face, and they are
448
+ mutually exclusive: pick one per training run.
449
+
450
+ ### Path 1: the fitted SMPL-X expression (in `smplx.npz`)
451
+
452
+ `smplx.npz` carries a real 100-dim `expression` and a `jaw_pose` per frame, fitted from
453
+ dense MediaPipe face landmarks across every view that saw the face. Let them drive the
454
+ mesh and the posed geometry moves its own face; an appearance network conditioned on that
455
+ geometry sees the expression for free, with no extra input and no architecture change.
456
+
457
+ Nothing extra to download. In DEGAS this is `smplx_nofacial: ''`.
458
+
459
+ ### Path 2: per-frame DPE expression codes (in `dpe/`)
460
+
461
+ This is the formulation in the DEGAS paper: **neutralize the mesh's face** and drive it
462
+ from a separate code instead. Two steps, and both are required:
463
+
464
+ 1. Zero the mesh's facial parameters (`smplx_nofacial: exp+jaw`, plus
465
+ `optim_skip: [expression, jaw_pose]` so they stay zero). The mesh then carries pose and
466
+ identity but no facial motion at all.
467
+ 2. Feed the decoder's 512-d face branch a per-frame code from `dpe/dpe-multi-faces.zip`.
468
+
469
+ ```
470
+ dpe/dpe-multi-faces.zip members dpe-{frame:06d}-cam{cc:02d}.pt
471
+ each a dict {'exp': FloatTensor(1, 512)}
472
+ dpe/dpe_meta.json cams, ref_frame, pad, dim, and per-camera statistics
473
+ ```
474
+
475
+ The members are keyed by **frame id**, not by position in a split, so a code can never be
476
+ silently mis-paired with a frame when you change `frm_list`. Two cameras are stored per
477
+ frame; a loader is expected to concatenate them to `(N_faces, 512)` and sample a random
478
+ convex combination as augmentation.
479
+
480
+ | capture | codes | cameras | reference frame |
481
+ |---|---|---|---|
482
+ | P1C1 | 3672 | cam07, cam30 | 918 |
483
+ | P1C2 | 586 | cam07, cam30 | 146 |
484
+ | P2C1 | 3736 | cam07, cam30 | 934 |
485
+ | P2C2 | 800 | cam07, cam30 | 200 |
486
+ | P3C1 | 3664 | cam07, cam30 | 916 |
487
+ | P3C2 | 814 | cam07, cam30 | 203 |
488
+
489
+ Remaining captures are being extracted and will appear here as they finish.
490
+
491
+ **How they were made.** The code is `mlp_exp(dir(mlp(enc(face_crop))))` from
492
+ [OpenTalker/DPE](https://github.com/OpenTalker/DPE)'s `Generator(size=256, style_dim=512,
493
+ motion_dim=20)`. That is exactly the tensor DPE's own `dec_exp` consumes, so it carries
494
+ expression and nothing else, and 512 is exactly DEGAS's `n_face_embs`: nothing is reshaped,
495
+ padded or projected. `enc.net_app` takes a single image, so the code is an absolute
496
+ per-frame function with no reference frame to choose and no convention to get wrong. The
497
+ face box comes from S3FD on one reference frame, expanded by 50 px, then held fixed for the
498
+ sequence, matching DPE's own `crop_video.py`.
499
+
500
+ **Cameras 07 and 30 are frontal tele views, and both are inside the training split.** The
501
+ held-out evaluation camera (cam03, the frontal face closeup) is deliberately excluded, so
502
+ no evaluation pixels leak into the face conditioning. Keep that property if you regenerate:
503
+
504
+ ```bash
505
+ python scripts/extract_dpe_codes.py --capture data/P1C1 --cams 7 30 --out data/P1C1/dpe
506
+ ```
507
+
508
+ **Driving one session with another session's codes is a bug, not a feature.** When you
509
+ evaluate a P1C1-trained avatar on P1C2, point the loader at `data/P1C2/dpe/`, or you will
510
+ render P1C2's poses with P1C1's expressions.
511
+
512
+ In DEGAS, `with_face_dpe` resolves relative to `dat_dir` and accepts a directory, so
513
+ `with_face_dpe: dpe` is the whole configuration.
514
+
515
+ ---
516
+
517
  ## How the registration was produced
518
 
519
  [Holistic-Multiview-Tracker](https://github.com/initialneil/Holistic-Multiview-Tracker),
 
536
  ## Related
537
 
538
  - [DEGAS](https://initialneil.github.io/DEGAS): Detailed Expressions on Full-Body Gaussian Avatars (3DV 2025), which introduced these captures as the DREAMS-Avatar dataset
539
+ - [DEGAS code](https://github.com/initialneil/DEGAS): training and evaluation, reads this dataset natively via `frameset_type: dreams`
540
+ - [DEGAS pretrained avatars](https://huggingface.co/initialneil/DEGAS): avatars trained on these captures, for both face paths
541
+ - [Holistic-Multiview-Tracker](https://github.com/initialneil/Holistic-Multiview-Tracker): the multiview SMPL-X registration that produced `smplx.npz`
542
  - [Holistic-Tracker](https://github.com/initialneil/Holistic-Tracker): the monocular counterpart
543
 
544
  ## Licence