Update Deploy - now use fetch weight

This commit is contained in:
2026-07-05 10:00:20 +00:00
parent 6232887ebd
commit 5265e802da
2 changed files with 21 additions and 2 deletions
+11 -1
View File
@@ -77,7 +77,17 @@ Three models are used by default: `hustvl/vitmatte-base-composition-1k` (matting
`ZhengPeng7/BiRefNet` (default segmenter), `skytnt/anime-seg` (optional segmenter).
A fourth model, `ZhengPeng7/BiRefNet_HR-matting` (~425 MB), is only needed if you
enable the **cross-check** veto — see the note at the end of this section.
Pick **one** of the two layouts below.
**Quick path (recommended):** run the bundled script — no arguments — to download
every model into `models/` via the hf-mirror (proxy bypassed, Xet disabled,
already-present folders skipped). Afterwards the app has full functionality offline:
```bash
python scripts/fetch_weights.py
```
The two manual layouts below are for finer control (e.g. a shared HF cache, or
picking specific models).
### Option A — HuggingFace cache + offline mode (recommended)