Add DEPLOY.md: Linux server deployment guide
Document deploying the FastAPI service to a Linux server end to end: venv + CPU-only torch (avoid the CUDA build), opencv-python-headless, the two weight layouts (HF cache offline vs local models/ folders) with the mirror/proxy/Xet download workaround, environment variables, uvicorn --workers 1, a systemd unit, verification, remote exposure, capacity notes, and a troubleshooting table. Link to it from README. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -131,6 +131,8 @@ metadata.json
|
||||
|
||||
An HTTP wrapper (`app.py` + `bgfilter/service.py`) exposes the pipeline as a
|
||||
long-running FastAPI service. Models load once and are reused across requests.
|
||||
For deploying to a Linux server (dependencies, weights, systemd, offline mode), see
|
||||
[DEPLOY.md](DEPLOY.md).
|
||||
|
||||
```powershell
|
||||
D:\MiniConda\envs\lightML\python.exe -m uvicorn app:app `
|
||||
|
||||
Reference in New Issue
Block a user