Filter speckle noise from the segmentation dropout-fill
The rescue floored alpha with BiRefNet's soft mask verbatim, which sprinkled ~800 isolated <10px specks (burrs) across the matte from the mask's scattered low-confidence noise. Drop rescued connected components below a min area, keeping only the connected wisp structures. On TestImage2 the rescued components fall from 900 (818 isolated specks) to 91 and the added pixels from 5124 to 1886 -- the genuine wisp strands stay, the burrs go. smoke still passes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -27,6 +27,7 @@ alpha_post:
|
||||
seg_fill_alpha_max: 0.10
|
||||
seg_fill_seg_min: 0.10
|
||||
seg_fill_strength: 0.70
|
||||
seg_fill_min_area_ratio: 0.00002
|
||||
|
||||
foreground:
|
||||
enabled: true
|
||||
|
||||
Reference in New Issue
Block a user