Stable Diffusion生成艺术二维码

简介: Stable Diffusion生成艺术二维码

首先需要一个Stable Diffusion服务环境,《Stable Diffusion服务环境搭建(远程服务版)》如果你已经有了那就忽略

一、准备一个比较好的二维码底图

首先解析二维码链接,这里用草料二维码来实现

链接https://cli.im/

这里点击解码,来生成二维码链接,接着上传二维码图片,复制二维码

screenshot20230802.png


image.png

image.png

改为一个好看的二维码底图,二维码底图也决定了二维码的美观

插件地址:https://github.com/antfu/sd-webui-qrcode-toolkit.git

安装教程:将上面的插件地址放入扩展仓库地址安装就好了,安装成功之后页面会多出一个这个如下图:

image.png

打开之后是这样的:

这个也有在线地址https://qrcode.antfu.me/这是他自己的网站,不过安东尼大佬已经把这个整合到了sd,直接用就好,这个插件现在做的码已经非常强,特别适合我们进行二次创作

下面讲解一下这个插件的用法:

  1. Error Correction:二维码的容错率(二维码容错率越高,信息点越多,制作出来的二维码越容易扫描),L指7%,M指15%,Q指25%,H指30%。容错率太低了就基本扫不出来所以建议使用Q挡
  2. Mask Pattern:就是改样子,修改码的分布
  3. Rotate:旋转,建议旋转180
  4. Pixel:液化,也是修改样子 修改码里面的
  5. Marker:修改定位点的样式
  6. Marker Shape:修改最外层的样式,这个的话越不容易察觉到那个圈,出来的图效果就越好
  7. Inner Marker:点的形状
  8. Invert:反转黑白,可以自己试试那种效果好
  9. Margin:对二维码进行扩展

这是我使用的:可以参考

image.png

然后下载二维码就好了Download

二、下载模型

https://civitai.com/models/4468?modelVersionId=57618(需要科学上网)

image.png

下载后上传到阿里云盘上操作。《Stable Diffusion服务环境搭建(远程服务版)》

三、参数设置

基础参数

image.png

ADetailer

如果你做人像的话可以使用sd插件ADetailer: 用于脸部,手部修复等,不需要的话忽略此步骤,新手建议先不使用

插件安装:扩展直接搜索ADetailer

image.png

下载安装即可

或者:使用从网址安装即可 链接https://github.com/Bing-su/adetailer.git


image.png


image.png

ControlNet

下载模型:QR CodeMonster

模型下载:https://huggingface.co/monster-

image.png

这个yaml也要下哈

image.png

导入模型请参考吴东子ControlNet的教程可以看这篇文章: 目《ControlNet终极攻略》

image.png

四、生成

设置完成后点击生成就可以了

image.png

image.png

一些Prompt和做的图

这个分享出来,希望大家多多尝试,各种模型,尝试起来,找到更好的模型,做出更棒的图。

Prompt

1girl,solo,long hair,messy hair,colorful hair,yellow off shoulder,hair flower,greenery,flower,(Masterpiece, bestquality),4k

Negative Prompt

bad-hands-5, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale)), bad proportions, render, 3d, 2d, sketch, painting, digital art, drawing, (deformed, distorted, disfigured:1.3), poorly drawn, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, bad art, low details, incomplete, undetailed, fused body parts, poorly drawn face, out of focus, smudgy, glossy, glitchy, bad human anatomy, more than two legs

模型:CounterfeitV30

模型的VAE/SD VAE

vae-ft-mse-840000-ema-pruned.safetensors

image.png


image.png

最喜欢的一组Prompt

可以在各种模型上使用

Prompt

1girl, wedding dress, solo,full body, from side, (white ribbon:1.3), (dark background:1.3),4k

Negative Prompt

bad-hands-5, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale)), bad proportions, render, 3d, 2d, sketch, painting, digital art, drawing, (deformed, distorted, disfigured:1.3), poorly drawn, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, bad art, low details, incomplete, undetailed, fused body parts, poorly drawn face, out of focus, smudgy, glossy, glitchy, bad human anatomy, more than two legs

模型:GhostMix

模型的VAE/SD VAE

vae-ft-mse-840000-ema-pruned.safetensors

image.png


image.png

c.这个色调真的喜欢

Prompt

1girl, cloud, sky, water, ocean, cloudy sky, blue eyes, blue sky, beautiful hair,4k

Negative Prompt

bad-hands-5, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale)), bad proportions, render, 3d, 2d, sketch, painting, digital art, drawing, (deformed, distorted, disfigured:1.3), poorly drawn, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, bad art, low details, incomplete, undetailed, fused body parts, poorly drawn face, out of focus, smudgy, glossy, glitchy, bad human anatomy, more than two legs

模型:CounterfeitV30

模型的VAE/SD VAE

vae-ft-mse-840000-ema-pruned.safetensors

image.png


image.png


相关文章
|
5天前
|
人工智能 搜索推荐
AIGC工具——Stable Diffusion
【1月更文挑战第11天】AIGC工具——Stable Diffusion
252 2
AIGC工具——Stable Diffusion
|
7月前
|
人工智能 自然语言处理 前端开发
AI 绘画Stable Diffusion 研究(十)sd图生图功能详解-精美二维码的制作
AI 绘画Stable Diffusion 研究(十)sd图生图功能详解-精美二维码的制作
564 1
|
7月前
|
机器学习/深度学习 人工智能 自然语言处理
AI 绘画Stable Diffusion 研究(七) 一文读懂 Stable Diffusion 工作原理(2)
AI 绘画Stable Diffusion 研究(七) 一文读懂 Stable Diffusion 工作原理
252 0
|
7月前
|
机器学习/深度学习 人工智能 自然语言处理
AI 绘画Stable Diffusion 研究(七) 一文读懂 Stable Diffusion 工作原理(1)
AI 绘画Stable Diffusion 研究(七) 一文读懂 Stable Diffusion 工作原理
216 0
|
8月前
|
存储 人工智能 Serverless
【收藏】制作艺术二维码,用 Stable Diffusion 就行!
艺术永远都不至于一种方式,基于函数计算部署 Stable Diffusion 制作艺术二维码,把你的艺术作品藏在二维码里面!
|
5天前
|
人工智能 物联网
stable-diffusion-webui教程(AI绘画真人教程)
stable-diffusion-webui教程(AI绘画真人教程)
134 1
|
5天前
|
机器学习/深度学习 算法 安全
Stable Diffusion使用窍门
Stable Diffusion使用窍门
387 1
|
5天前
|
机器学习/深度学习 数据采集 人工智能
基于Stable Diffusion的AIGC服饰穿搭实践
基于Stable Diffusion的AIGC服饰穿搭实践
288 1
|
7月前
|
人工智能 物联网 机器人
还在用Lora模型?快来试试 Stable Diffusion SDXL 1.0 模型,实现绘画自由
基于阿里云PAI-DSW部署Stable Diffusion SDXL 1.0 模型,生成高质量图片
360 0
|
9月前
|
存储 人工智能 Serverless
玩转 ControlNet:Stable Diffusion 制作艺术二维码
本文将详细讲解基于函数计算部署 Stable Diffusion 做一个艺术二维码,
957 0