大鹏一日同风起

大鹏一日同风起
记录日常,记录生活,记录时代
  1. 首页
  2. linux
  3. 正文

stable-diffusion-webui安装过程

2023年1月31日 177点热度 0人点赞 0条评论

1.conda创建3.10.6环境, 目前3.10.6支持的比较好
conda create -n python310_stableai python==3.10.6

2.激活新的conda环境
conda activate python310_stableai

3.安装pytorch
下载地址:https://pytorch.org/get-started/locally/
本机cuda:11.7.101
pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu117

4.下载stable-diffusion-webui
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui

5.下载模型stable-diffusion-v-1-4-original
1).最新官方模型地址:https://huggingface.co/CompVis/stable-diffusion-v-1-4-original
2).下载sd-v1-4.ckpt模型(大小约4G)
3).https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt

  1. 将模型文件放到stable-diffusion-webui下的models\Stable-diffusion目录下:
    修改sd-v1-4.ckpt模型名字为:model.ckpt
    放到stable-diffusion-webui\models\Stable-diffusion目录下
  2. 安装diffusion
    1).进入stable-diffusion-webui目录(在python310_stableai环境下)
    2). 执行 python launch.py
    3).大概等待20多分钟,下载各种依赖
    4). 出现"Running on local URL: http://127.0.0.1:7860" 表示运行成功
  3. 问题
    1)安装open_clip失败
    把launch.py 中的"https://github.com/mlfoundations/open_clip.git"替换为"https://gitee.com/ufhy/open_clip.git",然后重新运行python launch.py
标签: 暂无
最后更新:2023年1月31日

pbdatacn

这个人很懒,什么都没留下

点赞
< 上一篇

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

归档

  • 2023 年 1 月
  • 2022 年 12 月
  • 2022 年 9 月
  • 2022 年 8 月
  • 2017 年 10 月
  • 2017 年 9 月
  • 2015 年 12 月
  • 2015 年 11 月
  • 2015 年 10 月
  • 2015 年 9 月
  • 2015 年 8 月
  • 2015 年 3 月
  • 2015 年 1 月
  • 2014 年 12 月
  • 2014 年 10 月
  • 2014 年 9 月
  • 2014 年 8 月
  • 2014 年 7 月

分类

  • Android
  • Docker
  • hadoop
  • linux
  • Redis
  • webservice
  • 文章
  • 未分类
  • 生活
  • 算法

COPYRIGHT © 2026 大鹏一日同风起. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

京ICP备14029030号-1