Add foreground color estimation pass

This commit is contained in:
Codex
2026-06-30 16:25:56 +08:00
parent 1a670088c0
commit d6bb658244
9 changed files with 158 additions and 70 deletions
+13 -6
View File
@@ -10,6 +10,19 @@ trimap:
unknown_radius_ratio: 0.012
fg_safe_radius_ratio: 0.006
foreground:
enabled: true
edge_low: 0.005
edge_high: 0.995
min_unmix_alpha: 0.08
unmix_strength: 0.70
local_strength: 0.45
local_blur_radius: 11
local_alpha_threshold: 0.92
local_bg_confidence_max: 0.20
green_excess_margin: 0.015
bg_confidence_weight: 0.70
despill:
enabled: true
edge_low: 0.005
@@ -19,9 +32,3 @@ despill:
edge_expand_radius: 2
bg_confidence_weight: 0.65
alpha_weight_floor: 0.35
unmix_strength: 0.55
unmix_alpha_min: 0.08
local_fg_strength: 0.35
local_fg_blur_radius: 9
local_fg_alpha_threshold: 0.92
local_fg_bg_confidence_max: 0.20