Stable Diffusion生成艺术二维码linux版本部署

tips:
仅做笔记参考,侵权即删。
参考文档:
https://github.com/AUTOMATIC1111/stable-diffusion-webui
https://developer.aliyun.com/article/1292793

其他报错处理:
https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/4165

组成部分:
本地部署sd

插件:
controlnet 控制网
qrtoolkit 二维码编辑器
adetailer 局部修复
模型 model
qrcode monster
brightness

参考install
Installation and Running
Make sure the required dependencies are met and follow the instructions available for:
NVidia (recommended)
AMD GPUs.
Intel CPUs, Intel GPUs (both integrated and discrete) (external wiki page)
Alternatively, use online services (like Google Colab):


windows安装:
List of Online Services
Installation on Windows 10/11 with NVidia-GPUs using release package
Download sd.webui.zip from v1.0.0-pre and extract it's contents.
Run update.bat.
Run run.bat.
For more details see Install-and-Run-on-NVidia-GPUs

Automatic Installation on Windows
Install Python 3.10.6 (Newer version of Python does not support torch), checking "Add Python to PATH".
Install git.
Download the stable-diffusion-webui repository, for example by running git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git.
Run webui-user.bat from Windows Explorer as normal, non-administrator, user.


linux安装
Automatic Installation on Linux
Install the dependencies:
# Debian-based:
sudo apt install wget git python3 python3-venv libgl1 libglib2.0-0
# Red Hat-based:
sudo dnf install wget git python3
# Arch-based:
sudo pacman -S wget git python3
Navigate to the directory you would like the webui to be installed and execute the following command:
wget -q https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh
Run webui.sh.
Check webui-user.sh for options.

如果运行报错的话需要修改配置脚本:
运行之后本地其他主机打不开修改:webui-user.sh
修改参数 export COMMANDLINE_ARGS=“–listen --enable-insecure-extension-access”

启动:[-] ADetailer: Failed to load model ‘face_yolov8n.pt’ from huggingface
加上 ./webui.sh --ad-no-huggingface

报错:
[遇到的错误信息]
OSError: Can’t load tokenizer for ‘openai/clip-vit-large-patch14’. If you were trying to load it from ‘https://huggingface.co/models’, make sure you don’t have a local directory with the same name. Otherwise, make sure ‘openai/clip-vit-large-patch14’ is the correct path to a directory containing all relevant files for a CLIPTokenizer tokenizer.

[原因]
clip-vit-large-patch14 国内已经不能访问了
需要手动创建openai 目录并把 下载后解压的资源拖入到openai目录下面

科学上网下载:
https://huggingface.co/openai/clip-vit-large-patch14

二次元或者其他模板下载
https://civitai.com/

页面启动:
在这里插入图片描述qrtookit
在这里插入图片描述
用到的扩展:
在这里插入图片描述在这里插入图片描述

模板下载:
在这里插入图片描述参考:

https://www.youtube.com/watch?v=MaSbKzCiATE  感谢ai小王子
模板下载:
下载链接一:https://pan.quark.cn/s/ec185b55f53a
所有课程内资源提取地址+AI资料(用手机打开):https://pan.quark.cn/g/ba237c0ecd

下载链接二:https://pan.baidu.com/s/172hPYeR7-T67... 
提取码:axwz 

其他模板:
https://huggingface.co/models

配置项添加:
参考:
https://juejin.cn/post/7258469240734056509

目录结构:
在这里插入图片描述

adetailer

controlnet 控制网
把刚刚在qrtookit生成的二维码上传过来,开始制作艺术二维码
在这里插入图片描述
演示结果:我选择的是图生图
在这里插入图片描述
难点:
要分清楚扩展和模块,丢到对应的目录才可以。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
稳定的扩散是指在Linux部署环境中,确保系统稳定运行而进行的扩散。以下是如何实现稳定的扩散Linux部署的几个关键点: 1. 硬件选择:在部署之前,需要选择适当的硬件以满足系统的需求。选择具有高性能和可靠性的服务器和存储设备,确保系统能够稳定地运行。 2. 操作系统的选择:选择稳定且安全的Linux操作系统版本,并定期更新系统。例如,选择某些企业级Linux发行版(如CentOS,Ubuntu LTS等),这些发行版通常提供长期支持和更新。 3. 应用程序的管理:在部署过程中,确保所有的应用程序经过严格的测试和验证,并使用适当的监控和管理工具对其进行监测。这有助于准确发现和解决任何应用程序异常和故障。 4. 网络配置和安全:在部署过程中,确保正确配置网络,并采取适当的安全措施,如防火墙、入侵检测系统等,以提高系统的稳定性和安全性。同时,定期更新和修补系统以防止安全漏洞的利用。 5. 定期备份和恢复:建立定期的数据备份和恢复机制,以防止数据丢失和系统故障。备份数据可以存储在专门的备份服务器上,并定期测试和验证备份的完整性和可用性。 在稳定扩散Linux部署的过程中,还需要持续进行系统的监测和优化。通过使用性能监控和调优工具,可以发现和解决潜在的性能问题,并对系统进行优化,提高整体稳定性和性能。此外,建议定期进行系统维护和更新,并及时补充系统补丁和安全更新,以确保系统始终保持最新和安全。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值