update doc

This commit is contained in:
Artiprocher
2025-12-03 15:59:30 +08:00
parent 92a742e0df
commit f7c2d54ebd
3 changed files with 157 additions and 13 deletions

View File

@@ -35,16 +35,6 @@ pipe = QwenImagePipeline.from_pretrained(
> ```
>
> 模型文件默认下载到 `./models` 路径,该路径可通过[环境变量 DIFFSYNTH_MODEL_BASE_PATH](/docs/Pipeline_Usage/Environment_Variables.md#diffsynth_model_base_path) 修改。
>
> 默认情况下,即使模型已经下载完毕,程序仍会向远程查询是否有遗漏文件,如果要完全关闭远程请求,请将[环境变量 DIFFSYNTH_SKIP_DOWNLOAD](/docs/Pipeline_Usage/Environment_Variables.md#diffsynth_skip_download) 设置为 `True`。
如需从 [HuggingFace](https://huggingface.co/) 下载模型,可通过设置[环境变量](Environment_Variables.md)实现:
```shell
import os
os.environ["DIFFSYNTH_DOWNLOAD_RESOURCE"] = "huggingface"
import diffsynth
```
</details>
@@ -71,6 +61,22 @@ import diffsynth
</details>
默认情况下,即使模型已经下载完毕,程序仍会向远程查询是否有遗漏文件,如果要完全关闭远程请求,请将[环境变量 DIFFSYNTH_SKIP_DOWNLOAD](/docs/Pipeline_Usage/Environment_Variables.md#diffsynth_skip_download) 设置为 `True`
```shell
import os
os.environ["DIFFSYNTH_SKIP_DOWNLOAD"] = "True"
import diffsynth
```
如需从 [HuggingFace](https://huggingface.co/) 下载模型,请将[环境变量 DIFFSYNTH_DOWNLOAD_RESOURCE](/docs/Pipeline_Usage/Environment_Variables.md#diffsynth_download_resource) 设置为 `huggingface`
```shell
import os
os.environ["DIFFSYNTH_DOWNLOAD_RESOURCE"] = "huggingface"
import diffsynth
```
## 启动推理
输入提示词,即可启动推理过程,生成一张图片。