Update Deploy - now use fetch weight
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user