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).
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)
| Name | Type | Default | Description |
|---|---|---|---|
| uv_textures | IMAGE | Stack of BD_FaceTextureBake uv_texture outputs (N,H,W,3). | |
| confidences | MASK | Stack of BD_FaceTextureBake confidence outputs (N,H,W). | |
| seam_dilate | INT | 40–32 | Grow 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_thresholdopt | FLOAT | 0.050–1 | Pixels with summed confidence below this are treated as gaps in filled_mask. |
| target_maskopt | MASK | Full 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_gammaopt | FLOAT | 3.00.1–8 | Raise 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)
| Name | Type | Description |
|---|---|---|
| uv_texture | IMAGE | — |
| confidence | MASK | — |
| filled_mask | MASK | — |
| inpaint_mask | MASK | — |
| status | STRING | — |