清华主页 - 清华新闻 - 综合时讯 - 正文

stable diffusion 在webui环境配置中遇到的问题

#xff1环境配置步骤a;

  1. 创建python=conda;3.10环境,起个名叫。sdenv。, 使用命令。conda create -n denv python=3.10。
  2. 进入创造良好的环境。
  3. 直接在webui路径下运行。python launch.py。所需的包(将自动开始安装;国内源)可能需要梯子或在系统配置中添加pip;
  4. 如果顺利,直接启动webui服务,但是可能会遇到各种各样的问题。

可能遇到的问题:

1.。 TypeError: AsyncConnectionPool.__init__() got an unexpected keyword argument 'socket_options'

httpx。该包的版本修改为0.24.1。

2.。 No module named 'sgm'

在。webui/repositories/generative-models/。执行在目录下。pip install -e .。命令。

git clone https://github.com/Stability-AI/generative-models.git repositories/generative-modelscd repositories/generative-modelspip install -e .。

3.。 size_mismatch。

需要更新项目󿄚

  1. git reset --hard。
  2. git pull。

2025-06-24 12:23:14

相关新闻

清华大学新闻中心版权所有,清华大学新闻网编辑部维护,电子信箱: news@tsinghua.edu.cn
Copyright 2001-2020 news.tsinghua.edu.cn. All rights reserved.