Stable-diffusion-webui 安装遇到time out的问题

AI绘画第一步,安装Stable-Diffusion-WebUI全过程 !_托尼不是塔克的博客-CSDN博客


我是按照以上博客安装,但是安装并不顺利,因为网速问题,运行webui-user1.bat 经常断掉。

因为git拉取了特定版本,所以我将launch_utils.py中的:

#git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
# git_clone(stable_diffusion_xl_repo, repo_dir('generative-models'), "Stable Diffusion XL", stable_diffusion_xl_commit_hash)
# git_clone(k_diffusion_repo, repo_dir('k-diffusion'), "K-diffusion", k_diffusion_commit_hash)
# git_clone(codeformer_repo, repo_dir('CodeFormer'), "CodeFormer", codeformer_commit_hash)
# git_clone(blip_repo, repo_dir('BLIP'), "BLIP", blip_commit_hash)

改为:
git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion")
git_clone(stable_diffusion_xl_repo, repo_dir('generative-models'), "Stable Diffusion XL")
git_clone(k_diffusion_repo, repo_dir('k-diffusion'), "K-diffusion")
git_clone(codeformer_repo, repo_dir('CodeFormer'), "CodeFormer")
git_clone(blip_repo, repo_dir('BLIP'), "BLIP")

就拉取最新版本。

但还是有不行的,所以要自己下载相应的git目录然后放进repository,记得把名字中的main去掉。

#stable_diffusion_repo = os.environ.get('STABLE_DIFFUSION_REPO', "https://github.com/Stability-AI/stablediffusion.git")
stable_diffusion_xl_repo = os.environ.get('STABLE_DIFFUSION_XL_REPO', "https://github.com/Stability-AI/generative-models.git")
k_diffusion_repo = os.environ.get('K_DIFFUSION_REPO', 'https://github.com/crowsonkb/k-diffusion.git')
codeformer_repo = os.environ.get('CODEFORMER_REPO', 'https://github.com/sczhou/CodeFormer.git')
blip_repo = os.environ.get('BLIP_REPO', 'https://github.com/salesforce/BLIP.git')

 后面效果不够好,去https://civitai.com/models/28059?modelVersionId=121557 https://civitai.com/models/28059?modelVersionId=121557

下载了模型放进:

得到下面比较好一点的效果。 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值