ComfyUI Node
BD Flame Fit
Fit the FLAME head model to a LANDMARKS_BATCH and emit a FACE_FIT — drop-in alternative to BD_FaceFit. FLAME is a proper morphable model: fitting its shape + expression basis produces a SUBJECT-ACCURATE face (the basis only spans real face shapes), unlike warping a neutral mesh. Full head — face + scalp + neck. Per view: Adam fits shape/expression/pose + a weak- perspective camera to the 105 MediaPipe landmarks via the official mediapipe_landmark_embedding. Requires the converted model (tools/convert_flame.py → flame2023_facewrap.npz) + mediapipe_landmark_embedding.npz.
BD Flame Fit
- landmarks_batch
- face_fit
- status
◄flame_npz_path►
◄embedding_npz_path►
◄shape_coeffs100►
◄expr_coeffs50►
◄iterations300►
Category🧠BrainDead/FaceWrap
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| landmarks_batch | BD_LANDMARKS_BATCH | Output of BD_FaceLandmarks. | |
| flame_npz_pathopt | STRING | Path to flame2023_facewrap.npz. Empty = /tmp/ComfyUI/models/flame/flame2023_facewrap.npz | |
| embedding_npz_pathopt | STRING | Path to mediapipe_landmark_embedding.npz. Empty = /tmp/ComfyUI/models/flame/mediapipe_landmark_embedding.npz | |
| shape_coeffsopt | INT | 10010–300 | Number of FLAME shape basis components to fit. More = finer identity, slower, more overfit risk. |
| expr_coeffsopt | INT | 500–100 | Number of FLAME expression components to fit. |
| iterationsopt | INT | 30050–2000 | Adam iterations per view. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| face_fit | BD_FACE_FIT | — |
| status | STRING | — |