docs: add offline model download section to README
This commit is contained in:
parent
9e19d7e61a
commit
2dd053c060
44
README.md
44
README.md
@ -20,6 +20,50 @@ HTTP Request → ahserver (port 8079) → submit.dspy → longtasks.submit_task(
|
||||
- **模型常驻**: 首次任务加载 Wan2.2 模型,后续任务复用,无需重复加载
|
||||
- **异步队列**: longtasks 通过 Redis 管理任务队列,支持失败重试
|
||||
|
||||
## 模型下载(离线部署)
|
||||
|
||||
Real-ESRGAN x2 超分辨率模型,64MB。
|
||||
|
||||
### 方法1: wget(推荐)
|
||||
|
||||
```bash
|
||||
# 创建模型目录
|
||||
mkdir -p /data/ymq/models
|
||||
|
||||
# 下载模型
|
||||
wget -O /data/ymq/models/RealESRGAN_x2plus.pth \
|
||||
https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.1/RealESRGAN_x2plus.pth
|
||||
```
|
||||
|
||||
**下载大小**: 64MB
|
||||
**下载时间**: 约10-30秒
|
||||
|
||||
### 方法2: curl
|
||||
|
||||
```bash
|
||||
curl -L -o /data/ymq/models/RealESRGAN_x2plus.pth \
|
||||
https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.1/RealESRGAN_x2plus.pth
|
||||
```
|
||||
|
||||
### 方法3: 自动下载
|
||||
|
||||
服务首次运行时会自动下载模型到 `/data/ymq/models/RealESRGAN_x2plus.pth`,但需要网络能访问 GitHub。
|
||||
|
||||
### 验证下载
|
||||
|
||||
```bash
|
||||
ls -lh /data/ymq/models/RealESRGAN_x2plus.pth
|
||||
# 应该看到 64M 大小
|
||||
```
|
||||
|
||||
### 模型来源
|
||||
|
||||
- **GitHub**: https://github.com/xinntao/Real-ESRGAN
|
||||
- **Release**: v0.2.1
|
||||
- **License**: BSD 3-Clause
|
||||
- **Paper**: Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data
|
||||
|
||||
|
||||
## API 接口
|
||||
|
||||
### 1. 提交视频生成任务
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user