Ubuntu 22.04.2 LTS LTS x86_64 安装 stable-diffusion-webui 【2】基本版本完结。

这篇具有很好参考价值的文章主要介绍了Ubuntu 22.04.2 LTS LTS x86_64 安装 stable-diffusion-webui 【2】基本版本完结。。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

前篇

Ubuntu 20.04 LTS x86_64 安装 stable-diffusion-webui_hkNaruto的博客-CSDN博客

内容太多,分第二篇继续

中途重装了机器,20.04 ,apt upgrade后自动升级到22.04.2

现状:起来了,又没完全起来

启动日志

(stable-diffusion-webui) yeqiang@yeqiang-MS-7B23:~/Downloads/ai/stable-diffusion-webui$ ./webui.sh 

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on yeqiang user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Using TCMalloc: libtcmalloc_minimal.so.4
Python 3.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:36:39) [GCC 10.4.0]
Version: v1.4.0
Commit hash: 394ffa7b0a7fff3ec484bcd084e673a8b301ccc8
Installing requirements
Launching Web UI with arguments: 
No module 'xformers'. Proceeding without it.
Downloading: "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors" to /home/yeqiang/Downloads/ai/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors

loading stable diffusion model: FileNotFoundError
Traceback (most recent call last):
  File "/home/yeqiang/miniconda3/envs/stable-diffusion-webui/lib/python3.10/threading.py", line 973, in _bootstrap
    self._bootstrap_inner()
  File "/home/yeqiang/miniconda3/envs/stable-diffusion-webui/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/home/yeqiang/miniconda3/envs/stable-diffusion-webui/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/yeqiang/Downloads/ai/stable-diffusion-webui/webui.py", line 306, in load_model
    shared.sd_model  # noqa: B018
  File "/home/yeqiang/Downloads/ai/stable-diffusion-webui/modules/shared.py", line 726, in sd_model
    return modules.sd_models.model_data.get_sd_model()
  File "/home/yeqiang/Downloads/ai/stable-diffusion-webui/modules/sd_models.py", line 422, in get_sd_model
    load_model()
  File "/home/yeqiang/Downloads/ai/stable-diffusion-webui/modules/sd_models.py", line 440, in load_model
    checkpoint_info = checkpoint_info or select_checkpoint()
  File "/home/yeqiang/Downloads/ai/stable-diffusion-webui/modules/sd_models.py", line 181, in select_checkpoint
    raise FileNotFoundError(error_message)
FileNotFoundError: No checkpoints found. When searching for checkpoints, looked at:
 - file /home/yeqiang/Downloads/ai/stable-diffusion-webui/model.ckpt
 - directory /home/yeqiang/Downloads/ai/stable-diffusion-webui/models/Stable-diffusionCan't run without a checkpoint. Find and place a .ckpt or .safetensors file into any of those locations.


Stable diffusion model failed to load
Applying attention optimization: Doggettx... done.
preload_extensions_git_metadata for 7 extensions took 0.00s
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 14.0s (import torch: 3.7s, import gradio: 1.4s, import ldm: 3.7s, other imports: 3.6s, setup codeformer: 0.3s, list SD models: 0.2s, load scripts: 0.6s, create ui: 0.4s).


界面

Ubuntu 22.04.2 LTS LTS x86_64 安装 stable-diffusion-webui 【2】基本版本完结。,ai,ubuntu,stable diffusion,ai

获得阶段性成果了。

参考故障处理1. 下载资源,再次启动

(stable-diffusion-webui) yeqiang@yeqiang-MS-7B23:~/Downloads/ai/stable-diffusion-webui$ ./webui.sh 

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on yeqiang user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Using TCMalloc: libtcmalloc_minimal.so.4
Python 3.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:36:39) [GCC 10.4.0]
Version: v1.4.0
Commit hash: 394ffa7b0a7fff3ec484bcd084e673a8b301ccc8
Installing requirements
Launching Web UI with arguments: 
No module 'xformers'. Proceeding without it.
Calculating sha256 for /home/yeqiang/Downloads/ai/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors: preload_extensions_git_metadata for 7 extensions took 0.00s
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 4.3s (import torch: 1.0s, import gradio: 1.1s, import ldm: 0.3s, other imports: 0.6s, load scripts: 0.5s, create ui: 0.5s, gradio launch: 0.2s).
6ce0161689b3853acaa03779ec93eafe75a02f4ced659bee03f50797806fa2fa
Loading weights [6ce0161689] from /home/yeqiang/Downloads/ai/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
Creating model from config: /home/yeqiang/Downloads/ai/stable-diffusion-webui/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Downloading (…)cial_tokens_map.json: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 389/389 [00:00<00:00, 3.95MB/s]
Downloading (…)okenizer_config.json: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 905/905 [00:00<00:00, 10.3MB/s]
Failed to create model quickly; will retry using slow method.
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Downloading (…)olve/main/vocab.json: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 961k/961k [00:00<00:00, 1.42MB/s]
Downloading (…)olve/main/merges.txt: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 525k/525k [00:00<00:00, 1.16MB/s]
Downloading (…)lve/main/config.json: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4.52k/4.52k [00:00<00:00, 41.7MB/s]
Downloading pytorch_model.bin: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1.71G/1.71G [04:47<00:00, 5.96MB/s]
Applying attention optimization: Doggettx... done.
Textual inversion embeddings loaded(0): 
Model loaded in 370.7s (calculate hash: 8.8s, load weights from disk: 0.2s, create model: 303.4s, apply weights to model: 49.0s, apply half(): 8.5s, move model to device: 0.3s, calculate empty prompt: 0.3s).

成果启动,测试1girl看看

Ubuntu 22.04.2 LTS LTS x86_64 安装 stable-diffusion-webui 【2】基本版本完结。,ai,ubuntu,stable diffusion,ai

 已经能出图了。

日志

100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:05<00:00,  3.88it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:05<00:00,  3.93it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:05<00:00,  5.18it/s]

成功!接下来,就是各种插件了。 

故障处理

1. loading stable diffusion model: FileNotFoundError

Downloading: "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors" to /home/yeqiang/Downloads/ai/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors

切换网络,手动下载,记录下自动跳转的地址

https://cdn-lfs.huggingface.co/repos/6b/20/6b201da5f0f5c60524535ebb7deac2eef68605655d3bbacfee9cce0087f3b3f5/6ce0161689b3853acaa03779ec93eafe75a02f4ced659bee03f50797806fa2fa?response-content-disposition=attachment%3B+filename*%3DUTF-8%27%27v1-5-pruned-emaonly.safetensors%3B+filename%3D%22v1-5-pruned-emaonly.safetensors%22%3B&Expires=1688787296&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL3JlcG9zLzZiLzIwLzZiMjAxZGE1ZjBmNWM2MDUyNDUzNWViYjdkZWFjMmVlZjY4NjA1NjU1ZDNiYmFjZmVlOWNjZTAwODdmM2IzZjUvNmNlMDE2MTY4OWIzODUzYWNhYTAzNzc5ZWM5M2VhZmU3NWEwMmY0Y2VkNjU5YmVlMDNmNTA3OTc4MDZmYTJmYT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2ODg3ODcyOTZ9fX1dfQ__&Signature=e%7E-AzlznAdm6eL9O8praWV45-Q%7E3nHs9tk45pNF1Y15QFwr6dhBwXjMgEIPHYXAKXh8WKfcjyp8zRAHtix1rGA61w5yh%7EurUQ7SC1VAcJMplTAgq1qbC7xY97HdZjzPfXd8h9slBdrzGZe8ZqMlDsdF8N3Qk0xsbeCaYWwVjCziS59EfJOf8t%7Exju79bkVUNhNviXo%7EnEfL2072jQnQngkvMDXeGPtu4jQRrhdOH53dWnU5alt4BM5tcqV-TCAJQl8qtiRHXSPX4CXJN-yT2laAqheShvkgKiPESrMTt4nQeay-GqyXRzyyL7QiRgPPFHxF1ghvbtNyicgqJgUQAiQ__&Key-Pair-Id=KVTP0A1DKRTAX

Ubuntu 22.04.2 LTS LTS x86_64 安装 stable-diffusion-webui 【2】基本版本完结。,ai,ubuntu,stable diffusion,ai

cp ~/Downloads/v1-5-pruned-emaonly.safetensors /home/yeqiang/Downloads/ai/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors

总结

过程中遇到的阻碍

1.网络!该问题最为严重,pip采用清华、阿里源会导致依赖安装版本不匹配报错!外网的资料又下载不过来

2. cuda驱动安装,经历系统升级,黑屏文章来源地址https://www.toymoban.com/news/detail-570219.html

到了这里,关于Ubuntu 22.04.2 LTS LTS x86_64 安装 stable-diffusion-webui 【2】基本版本完结。的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • (超详细版)树莓派4b烧录Ubuntu Desktop 22.04 LTS (x64)+换清华源+安装VScode+安装Todesk并实现远程控制

    提前准备 树莓派4b TF卡 读卡器 显示器(支持HDMI接口) 键鼠(USB接口) 下载 Raspberry Pi Imager           这里选择对应你电脑系统的版本        开始烧录 !!! 注意 !!!         先连接显示器再上电(pi不支持热拔插)         如果不明白如何操作,请参考 树小

    2024年03月13日
    浏览(54)
  • 浪潮服务器安装OpenEuler-22.03-LTS-SP3-x86_64全程记录

    * 第一步 安装系统之前,要做raid配置,不做raid的话,以后硬盘损坏了数据全无(我师父教我的)。 首先,服务器开机,进入浪潮logo界面的时候,点击“del”键进入BIOS。进入之后使用左右上下键,到“Advanced”界面,找到“CSM configuration”,Enter键点进去: 它对应设置如图所

    2024年04月28日
    浏览(33)
  • Install Stable Diffusion WebUI on Ubuntu 22.04.2 LTS

    OS:Ubuntu 22.04 LTS Kernel:5.15.0-60-generic CPU: Intel(R) Xeon(R) Gold 6278C CPU @ 2.60GHz, 8vCPUs  GPU: 1 * NVIDIA V100-PCIe-32G  RAM: 64GB system disk:512 GiB data disk: 2048 GiB Stable Diffusion WebUI version:0cc0ee1 (2023/2/20) Go to HuggingFace or Civitai to find a model. Use wget command to download the model Here are some good mode

    2024年02月15日
    浏览(28)
  • Ubuntu 22.04.3 LTS安装

    最近换电脑了,准备重新装一下ubuntu。多年前装过ubuntu很老的版本,现在发现官网最新的LTS版本是 Ubuntu 22.04.3 LTS 版本。那重新装的话,肯定装最新的版本了。这里我记录下自己的安装过程,作为以后的笔记查看。 我的环境: 软件:windows11 硬件:英特尔CPU 我这里装的Ubuntu系

    2024年02月07日
    浏览(31)
  • Stable Diffusion WebUI Ubuntu 22.04 LTS RTX2060 6G 极限显存出图

    模型   默认选中  chilloutmix_Ni.safetensors,重启webui.sh进程 正向词 反向词 其他 出图    显卡还能剩余不到200M。

    2024年02月13日
    浏览(33)
  • Ubuntu 22.04 x86_64 源码编译 pytorch-v2.0.1 笔记

    cmake cuda Ubuntu 20.04 LTS 安装 nvidia 驱动 + cuda 11.8 从开始到放弃!_hkNaruto的博客-CSDN博客 地址 GitHub - pytorch/pytorch: Tensors and Dynamic neural networks in Python with strong GPU acceleration 解决 切换到git 源码目录重试 注意,调整下eigen地址 根据以往stable diffusion webui经验,采用conda创建python3.10.

    2024年02月16日
    浏览(40)
  • Ubuntu20.04_x86交叉编译aarch64版本的tslib1.22步骤

    编译环境:小米笔记本+Windows10+VMware17 +Ubuntu20.04虚拟机 编译目标:需要生成aarch64环境下对应的触摸屏驱动。 编译步骤: 1、下载aarch64-linux-gnu编译器,下载地址为:https://releases.linaro.org/components/toolchain/binaries/7.5-2019.12/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.x

    2024年02月16日
    浏览(38)
  • Ubuntu 22.04 x86_64 源码编译 pytorch-v2.0.1 笔记【2】编译成功

     20230831继续: 当前状态 故障1 目录是空的 (pytorch-build) yeqiang@yeqiang-MS-7B23:~/Downloads/src/pytorch$ ll third_party/foxi 总计 0   手动checkout (pytorch-build) yeqiang@yeqiang-MS-7B23:~/Downloads/src/pytorch/third_party/foxi$ git pull 已经是最新的。 (pytorch-build) yeqiang@yeqiang-MS-7B23:~/Downloads/src/pytorch/third_party/fo

    2024年02月10日
    浏览(43)
  • UBuntu 22.04.3 LTS 安装搜狗中文输入法

    01. 更新应用源 02. 安装输入法系统 03. 打开系统设置 04. 打开语言支持窗口 ① 设置键盘输入法系统为: fcitx ② 添加或删除语言: 中文简体、英文 ③ 应用到整个系统 ④ 重启系统 05. 设置fcitx开机自启动 06. 卸载ibus输入法系统 07. 下载搜狗输入法 搜狗输入法官网下载地址 需要选

    2024年03月13日
    浏览(60)
  • Ubuntu服务器安装配置slurm (Ubuntu 22.04 LTS)

    Slurm 全称 S imple L inux U tility for R esource M anagement。通常被用于大型Linux服务器 (超算) 上,作为任务管理系统。本文详细讲述如何在 Ubuntu 22.04 LTS 上安装slurm,并进行简单的配置。 其实网上相关的教程已经非常多,但在旧版本的Ubuntu上安装slurm时,通常需要安装一个名为slurm-ll

    2024年02月07日
    浏览(52)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包