当前位置: 首页 > news >正文

[ubuntu][原创]ubuntu上安装stable-diffusion-webui

下载源码:

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
一般方法就是:

bash webui.sh

但是很遗憾这个国内很难成功,而且很容易陷入困境,因此需要下面方法

核心思想:环境和源码分开安装

下载一个anconda并安装,由于过程简单,这个省略,然后

conda create -n sd python=3.8 -y

conda activate sd

pip install torch==2.0.0+cu118 torchvision==0.15.0+cu118  --extra-index-url https://download.pytorch.org/whl/cu118

cd stable-diffusion-webui

pip install -r requirements.txt

后面缺什么就pip什么

mkdir repositories
git clone https://github.com/Stability-AI/stablediffusion.git repositories/stable-diffusion-stability-ai
git clone https://github.com/CompVis/taming-transformers.git repositories/taming-transformers
git clone https://github.com/sczhou/CodeFormer.git repositories/CodeFormer
git clone https://github.com/salesforce/BLIP.git repositories/BLIP

git clone https://github.com/crowsonkb/k-diffusion.git repositories/k-diffusion

(可选)安装GFPGAN(面部修复)
pip install git+https://github.com/TencentARC/GFPGAN.git --prefer-binary
(可选)安装CodeFormer所需的库(面部修复)
pip install -r repositories/CodeFormer/requirements.txt --prefer-binary

安装完跑起来:

python webui.py

如果报什么错解决什么错就行了,如果报错

no module named 'open_clip'

安装:pip install open_clip_torch即可

执行python webui.py后面操作会自动下载模型,如果下载不了,手动下载对应目录即可。

http://www.lryc.cn/news/66230.html

相关文章:

  • 【数组排序算法】
  • 制造企业选择库存管理条码工具需要关注哪些点?
  • SPI配置
  • 给你们讲个笑话——低代码会取代程序员
  • Kotlin的出现无疑是为了超越Java而存在
  • 基于C#开发 B/S架构的实验室管理系统 云LIS系统(MVC + SQLserver + Redis)
  • Webpack5有哪些更新?
  • 前端Vue
  • SpringCloud 分布式事务组件之Seata
  • @TransactionalEventListener的使用和实现原理
  • 没计算机基础,就是评职称用的,软考中级哪个好考啊?
  • 数字化战略,如何解读企业财务报表
  • JAVA14新特性
  • Google SEO优化的10大误区
  • .netCHARTING 10.5 dotnetcharting Crack
  • 单元,集成,系统,验收,回归测试
  • 云计算适合大专生学吗?
  • 【系统集成项目管理工程师】项目风险管理
  • Quartz2D之Path使用初步
  • Adobe考试
  • 三线城市程序员的薪资待遇怎么样?我分享提高java技术水平的几个方法
  • 马哈鱼SQLFLow对SQL Server OUTPUT Clause 的数据血缘分析
  • 5/8~5/9总结
  • java 数组创建的方法
  • HID Relay, 有线键盘转蓝牙项目学习:记一次失败的尝试
  • 天猫数据分析:2023年Q1天猫净水器品牌销售TOP10排行榜
  • TweenMax 源码阅读
  • B/S医院手术麻醉管理系统源码:麻醉知情同意书模板
  • postman 的 console 窗口,助力 http 请求错误时的问题排查
  • 破事精英2◎爬向未来