Improve despill and add quality checks
This commit is contained in:
@@ -86,9 +86,21 @@ qa_grid.png
|
||||
metadata.json
|
||||
```
|
||||
|
||||
## Quality Check
|
||||
|
||||
The quality checker measures alpha validity and green spill on semi-transparent
|
||||
edge pixels.
|
||||
|
||||
```powershell
|
||||
D:\MiniConda\envs\lightML\python.exe -m bgfilter.quality_cli `
|
||||
Outputs\TestImage_rgba.png `
|
||||
--max-edge-green-excess-p95 0.55
|
||||
```
|
||||
|
||||
## Current Notes
|
||||
|
||||
- `Samples/` and `Outputs/` are ignored by Git.
|
||||
- `ViTMatte` model weights are loaded from Hugging Face on first use.
|
||||
- Current despill is conservative and edge-local. Strong green spill around hair may
|
||||
still need parameter tuning or a stronger foreground color estimation pass.
|
||||
- Current despill is edge-local and includes a lightweight foreground unmixing pass.
|
||||
Strong green spill around hair may still need more advanced foreground color
|
||||
estimation.
|
||||
|
||||
Reference in New Issue
Block a user