update doc

This commit is contained in:
Artiprocher
2025-11-07 19:30:03 +08:00
parent 74f8181f93
commit bdedd46d4c
12 changed files with 677 additions and 20 deletions

View File

@@ -98,6 +98,7 @@ image,prompt
image_1.jpg,"a dog"
image_2.jpg,"a cat"
```
* `json` 格式:可读性高、支持列表数据、内存占用大
```json

View File

@@ -21,8 +21,11 @@ config = ModelConfig(
)
# Download models
config.download_if_necessary()
print(config.path)
```
调用 `download_if_necessary` 后,模型会自动下载,并将路径返回到 `config.path` 中。
### 从本地路径加载模型
如果从本地路径加载模型,则需要填入 `path`
@@ -46,6 +49,10 @@ config = ModelConfig(path=[
])
```
### 显存管理配置
`ModelConfig` 也包含了显存管理配置信息,详见[显存管理](/docs/Pipeline_Usage/VRAM_management.md#更多使用方式)。
## 模型文件加载
`diffsynth.core.loader` 提供了统一的 `load_state_dict`,用于加载模型文件中的 state dict。