mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-08-16 08:00:42 +03:00
Page:
Stable Diffusion Webui OpenVINO 脚本安装教程 (预览)
Pages
API
Change model folder location
Command Line Arguments and Settings
Contributing
Custom Images Filename Name and Subdirectory
Custom Scripts
Dependencies
Developing custom scripts
Developing extensions
Extensions index
Extensions
Features
Guides and Tutorials
Home
How to make your own Inpainting model
Install and Run on AMD GPUs
Install and Run on NVidia GPUs
Installation on Apple Silicon
Installation on Intel Silicon
List of Time Zones
Localization
Negative prompt
Online Services
Optimizations
Seed breaking changes
Stable Diffusion Webui OpenVINO 脚本安装教程 (预览)
Tests
Textual Inversion
Troubleshooting
Xformers
Table of Contents
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Stable Diffusion Webui + Intel OpenVINO 加速脚本 (预览版)
Stable Diffusion Webui 现在可以使用Intel® Distribution of OpenVINO™ 在Intel CPU和GPU(集成和独立显卡)等硬件上运行。这是一个正在开发中的项目,我们热烈欢迎社区提供反馈与支持。
重要注意事项
为了能在Windows上获得最佳性能, 请按以下步骤运行 webui-user.bat
- 以管理员身份启动命令提示符。
- cd
stable-diffusion-webui
.\webui-user.bat
以下的一些功能在OpenVINO加速脚本中尚不支持:
- hires fix
- custom scripts
安装说明
Windows:
- 下载并安装 git 和 Python 3.10.6 (勾上 Add to PATH)
git clone https://github.com/openvinotoolkit/stable-diffusion-webui.git
cd stable-diffusion-webui
first-time-runner.bat
torch-install.bat
- 在所有WebUI环境条件安装完成后,以管理员身份启动命令提示符并
cd
到stable-diffusion-webui
目录。 - 运行
webui-user.bat
。 - 按照此处的说明使用OpenVINO的自定义脚本。
PyTorch 目前在Windows上尚未官方支持torch.compile。使用以下方法可以在Windows上利用该功能(或使用torch-install.bat 自动更改eval_frames.py
文件 ):
- 从此处 下载经过验证的PyTorch预览版(2.1.0.dev20230713)
- 更改文件venv/Lib/site-packages/torch/_dynamo/eval_frames.py。
def check_if_dynamo_supported():
if sys.platform == "win32":
raise RuntimeError("Windows not yet supported for torch.compile")
if sys.version_info >= (3, 11):
raise RuntimeError("Python 3.11+ not yet supported for torch.compile")
- 找到名为check_if_dynamo_supported()的函数,将位于该函数的前两行注释掉。
def check_if_dynamo_supported():
#if sys.platform == "win32":
# raise RuntimeError("Windows not yet supported for torch.compile")
if sys.version_info >= (3, 11):
`raise RuntimeError("Python 3.11+ not yet supported for torch.compile")
已知问题
将采样方法更改为DPM++或Karras方法会重新编译模型,因为它对图表进行了修改。建议在性能测量中排除首次生成图像所需的时间。 目前,Regular Stable Diffusion 2.1在独显上存在已知问题。建议使用Stable Diffusion 2.1-base版本。
This is the Stable Diffusion web UI wiki. Wiki Home