Implement green screen matting pipeline

This commit is contained in:
Codex
2026-06-30 14:14:15 +08:00
parent 4d2a2015fe
commit 8fc53925e0
17 changed files with 896 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
model:
model_name: hustvl/vitmatte-small-composition-1k
device: cuda
matting_method: vitmatte
fallback_to_chroma_alpha: false
trimap:
sure_bg_threshold: 0.92
sure_fg_threshold: 0.12
unknown_radius_ratio: 0.012
fg_safe_radius_ratio: 0.006
despill:
enabled: true
edge_low: 0.02
edge_high: 0.98
strength: 0.75