Nodes/ComfyUI-BrainDead/BD UV Confidence Blend
ComfyUI Node

BD UV Confidence Blend

Composite multiple BD_FaceTextureBake outputs into one UV texture, weighted per-pixel by their confidence masks. Outputs: - uv_texture: the composite - confidence: combined per-pixel confidence (max across views) - filled_mask: binary — where the composite has data - inpaint_mask: binary — where Qwen SHOULD paint. If target_mask is wired, this is target & ~filled (gaps inside the UV layout). Otherwise it falls back to ~filled (every unfilled pixel including background).

By BizaNator·Created 7 months ago·Updated 16 days ago· 14
BD UV Confidence Blend
  • uv_textures
  • confidences
  • target_mask
  • uv_texture
  • confidence
  • filled_mask
  • inpaint_mask
  • status
seam_dilate4
fill_threshold0.05
confidence_gamma3.0
Category🧠BrainDead/FaceWrap

Inputs (6)

NameTypeDefaultDescription
uv_texturesIMAGEStack of BD_FaceTextureBake uv_texture outputs (N,H,W,3).
confidencesMASKStack of BD_FaceTextureBake confidence outputs (N,H,W).
seam_dilateINT40–32Grow the filled region by this many pixels via non-blurring edge extend (each new pixel copies a filled neighbour, no averaging) to prevent black-bleed at UV seams under bilinear sampling. 0 disables.
fill_thresholdoptFLOAT0.050–1Pixels with summed confidence below this are treated as gaps in filled_mask.
target_maskoptMASKFull UV-layout silhouette — where the final texture SHOULD have data (typically BD_FaceTextureBake's uv_layout_mask). Used to compute inpaint_mask = target & ~filled, so Qwen explicitly paints gaps no view covered. If omitted, inpaint_mask is just ~filled (background included).
confidence_gammaoptFLOAT3.00.1–8Raise confidences to this power before blending. >1 makes the highest-confidence view dominate each texel more sharply, which cuts ghosting/blur from averaging slightly-misaligned views. 1 = flat linear blend (more prone to blur); 3 = default; higher = closer to hard winner-take-all.

Outputs (5)

NameTypeDescription
uv_textureIMAGE
confidenceMASK
filled_maskMASK
inpaint_maskMASK
statusSTRING