Revert "Carve background green embedded in the foreground (hole handling)"
This reverts commit f7e12d3.
The carve set alpha to 0 on a colour-thresholded mask across the whole
foreground, which cannot distinguish background green from green the AI
generator bled onto the subject. It therefore (1) deleted green-tinted hair
strands and (2) hard-cut the green-spill silhouette edge, replacing ViTMatte's
anti-aliased edge with a jagged one. Local cues (surround, opacity, thinness,
connectivity, neighbour colour) could not reliably separate green hair from
green holes, so the mask is not fixable by tuning. Reverting restores intact
hair and smooth edges; the finger-gap green stays a minor residual.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -39,14 +39,6 @@ class AlphaPostSettings:
|
||||
chroma_suppress_bg_low: float = 0.35
|
||||
chroma_suppress_bg_high: float = 0.80
|
||||
chroma_suppress_strength: float = 1.0
|
||||
# Background-hole carving (doc section 10): remove green-dominant pixels that
|
||||
# are embedded in the foreground (finger gaps, inter-strand pockets) where the
|
||||
# green is too dark for the chroma confidence to flag.
|
||||
hole_carve: bool = True
|
||||
hole_green_dominance: float = 0.10
|
||||
hole_fg_alpha: float = 0.5
|
||||
hole_surround_radius_ratio: float = 0.012
|
||||
hole_surround_min: float = 0.4
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
|
||||
Reference in New Issue
Block a user