Nodes/ComfyUI-BrainDead/BD MP Save Face Data
ComfyUI Node

BD MP Save Face Data

Save MediaPipe face mask data to disk (NPZ + JSON). Wire BD MP Face Mask outputs directly to matching inputs. Wire BD MP Face Refine masks to overwrite with SAM3-refined versions. Use context_id (from BD_SaveContext) for auto-path resolution. JSON sidecar has per-region bboxes readable from Blender Python.

By BizaNator·Created 7 months ago·Updated 16 days ago· 14
BD MP Save Face Data
  • face_oval
  • skin
  • left_eye
  • right_eye
  • eyes
  • left_brow
  • right_brow
  • brows
  • left_iris
  • right_iris
  • irises
  • lips
  • nose
  • left_ear
  • right_ear
  • ears
  • forehead
  • hair
  • head_mask
  • masked_skin
  • image
  • npz_path
  • json_path
  • status
context_id
output_dirmediapipe_data
nameface
auto_incrementtrue
Category🧠BrainDead/Segmentation

Inputs (25)

NameTypeDefaultDescription
context_idoptSTRINGBD_SaveContext context_id. When wired/set, output_dir and name are ignored — the context template determines the full path.
face_ovaloptMASK
skinoptMASKFrom BD MP Face Mask or BD MP Face Refine (SAM3-refined).
left_eyeoptMASK
right_eyeoptMASK
eyesoptMASK
left_browoptMASK
right_browoptMASK
browsoptMASK
left_irisoptMASK
right_irisoptMASK
irisesoptMASK
lipsoptMASK
noseoptMASK
left_earoptMASK
right_earoptMASK
earsoptMASK
foreheadoptMASK
hairoptMASK
head_maskoptMASKExternal head silhouette (SAM3/BD MP Face Refine).
masked_skinoptMASKRefined skin mask (BD MP Face Refine 'skin' output or custom).
imageoptIMAGEPre-resolution image for texture generation / Blender UV projection.
output_diroptSTRINGmediapipe_dataSubdirectory under ComfyUI output/ (ignored when context_id is set).
nameoptSTRINGfaceBase filename (ignored when context_id is set).
auto_incrementoptBOOLEANtrueAppend _001, _002… to avoid overwriting.

Outputs (3)

NameTypeDescription
npz_pathSTRING
json_pathSTRING
statusSTRING