Improve despill and add quality checks

This commit is contained in:
Codex
2026-06-30 14:29:19 +08:00
parent 8fc53925e0
commit 464a60c733
6 changed files with 190 additions and 14 deletions
+9 -4
View File
@@ -38,10 +38,15 @@ class AlphaPostSettings:
@dataclass(frozen=True)
class DespillSettings:
enabled: bool = True
edge_low: float = 0.02
edge_high: float = 0.98
strength: float = 0.75
green_excess_margin: float = 0.03
edge_low: float = 0.005
edge_high: float = 0.995
strength: float = 0.92
green_excess_margin: float = 0.015
edge_expand_radius: int = 2
bg_confidence_weight: float = 0.65
alpha_weight_floor: float = 0.35
unmix_strength: float = 0.55
unmix_alpha_min: float = 0.08
@dataclass(frozen=True)