AI绘图傻瓜指南 - 5分钟教你做出绝美的AI二维码 * { margin: 0; padding: 0; outline: 0; } body { font-family: “PingFang SC”, system-ui, -apple-system, BlinkMacSystemFont, “Helvetica Neue”, “Hiragino Sans GB”, “Microsoft YaHei UI”, “Microsoft YaHei”, Arial, sans-serif; line-height: 1.6; } .__page_content__ { max-width: 667px; margin: 0 auto; padding: 20px; text-size-adjust: 100%; color: rgba(0, 0, 0, 0.9); padding-bottom: 64px; } .title { user-select: text; font-size: 22px; line-height: 1.4; margin-bottom: 14px; font-weight: 500; } .__meta__ { color: rgba(0, 0, 0, 0.3); font-size: 15px; line-height: 20px; hyphens: auto; word-break: break-word; margin-bottom: 50px; } .__meta__ .nick_name { color: 576B95; } .__meta__ .copyright { color: rgba(0, 0, 0, 0.3); background-color: rgba(0, 0, 0, 0.05); padding: 0 4px; margin: 0 10px 10px 0; } blockquote.source { padding: 10px; margin: 30px 0; border-left: 5px solid ccc; color: #333; font-style: italic; word-wrap: break-word; } blockquote.source a { cursor: pointer; text-decoration: underline; } .item_show_type_0 > section { margin-top: 0; margin-bottom: 24px; } a { color: 576B95; text-decoration: none; cursor: default; } .text_content { margin-bottom: 50px; user-select: text; font-size: 17px; white-space: pre-wrap; word-wrap: break-word; line-height: 28px; hyphens: auto; } .picture_content .picture_item { margin-bottom: 30px; } .picture_content .picture_item .picture_item_label { text-align: center; } img { max-width: 100%; } .pay_subscribe_notice { margin: 30px 0; padding: 20px; background: fffbe6; border: 1px solid ffe58f; border-radius: 8px; } .pay_subscribe_badge { display: inline-block; padding: 4px 12px; background: faad14; color: fff; border-radius: 4px; font-size: 14px; font-weight: 500; margin-bottom: 12px; } .pay_subscribe_desc { font-size: 15px; line-height: 1.8; color: rgba(0, 0, 0, 0.7); margin-bottom: 12px; } .pay_subscribe_hint { font-size: 13px; color: rgba(0, 0, 0, 0.4); } .__bottom-bar__ { display: flex; justify-content: space-between; align-items: center; position: fixed; bottom: 0; left: 0; right: 0; height: 64px; padding: 8px 20px; background: white; box-sizing: border-box; border-top: 1px solid rgba(0, 0, 0, 0.2); } .__bottom-bar__ .left { display: flex; align-items: center; font-size: 15px; white-space: nowrap; } .__bottom-bar__ .right { display: flex; } .__bottom-bar__ .sns_opr_btn { display: flex; align-items: center; user-select: none; background: transparent; border: 0; color: rgba(0, 0, 0, 0.9); font-size: 14px; } .__bottom-bar__ .sns_opr_btn:not(:last-child) { margin-right: 16px; } .__bottom-bar__ .sns_opr_btn > img { margin-right: 4px; }
AI绘图傻瓜指南 - 5分钟教你做出绝美的AI二维码
原创 数字生命卡兹克 数字生命卡兹克 2023-06-29 20:14 天津
事情是这样的。
粉丝看到一个很炫酷的二维码,在另一个群里问了一句,有没有教程,然后对方说星球有,加星球就能看。。emmm
这个东西前段时间我正好研究过,这不巧了。
于是我就来写一篇关于AI炫酷二维码的喂饭教程。
实现的效果大概是这样的。
还有这样的。
思路和做法简单来说,就是用草料生成一个二维码,然后用StableDiffusion+ControlNET进行定点重绘。没用HG上封装好的那种是因为没法用自己的模型和LoRA,实在太丑了。。。
步骤和参数已经调好了,不需要太玄学的抽卡,成功率60~70%左右。
话不多说,直接开始。
首先我们先去草料上生成一个二维码,网址在此:
按你自己的需求生成一个什么样的二维码,教程案例就是给我自己的公众号做。
这里我说一点能让二维码更容易被识别的小技巧。
这块的容错改成30%,尺寸改到500*500px。
然后重点的来了。
点进去二维码美化,把码边距改成4个色块,你会发现二维码的白色边距变大了。
这个小操作,能提升很多最后扫码成功率。你们也可以日常中也可以回想一下,有时候离得太近了,二维码扫不出来,但是把手机拉远,是不是就行了?一个道理。
想要二维码变好看不用这个大正方形的,也可以自己去设置里面改,比如我就生成了圆形的。
OK,二维码准备完毕,接下来我们需要下载两个SD的ControlNET模型,我已经打包好了,关注我,后台私信QR就自动发你了。
如果不懂SD和Control的,请去看我之前的两篇教程,虽然写的有点早,但是一个样。
AI绘图傻瓜指南 - 5分钟教你用ControlNET让妹子摆出你想要的pose
ControlNET模型下载下来目前基本都是放在这个路径下:
sd-webui-aki-v4\extensions\sd-webui-controlnet\models
打开我们的SD。
正常选择我们的模型输入我们的咒语,模型我直接就用的我挺喜欢的GhostMIX。
这里有几个关键参数注意以下:
迭代步数 (Steps)设置到15,采样选择DPM++ 2M Karras,图像大小设置到768*768。
设置好以后,我们打开我们的Control,把二维码传上去,然后我们需要用到两层Control去控制,参数我已经调好,照抄就行。
第一个Control,允许SD重新着色,用以下参数:
预处理器:空
模型:control_vlp_sd15_brightness
权重:0.3
介入时机:0
终止时机:0.2
-
第二个Control,生成图像,用以下参数:
预处理器:inpaint_global_harmonious
模型:control_vlp_sd15_qrcode
权重:1.1~1.3
介入时机:0.15
终止时机:1
OK,一切准备就绪,我们直接开跑一张。
扫扫试试。一把成~
你们也可以去做自己喜欢的二维码~在这个新奇的年代,这种二维码还是很有趣的,至少很吸睛。
但是回到实际,AI二维码的实际应用场景,除了好玩、新奇,我认为千万不要偏离了他最核心的作用 - 提示用户这是个二维码,这是可以扫的,千万不要做的过于艺术,让人都意识不到这是个二维码,反而降低了扫码率,那就有点得不偿失了。
希望大家都能做出自己喜欢的炫酷二维码~
以上,既然看到这里了,如果觉得不错,随手点个赞和“在看”吧,并给我个星标⭐,感恩。
数字生命卡兹克
 阅读 赞  分享 ‘%3E %3Cg transform=‘translate(0 -2.349)‘%3E %3Cpath d=‘M0 2.349h24v24H0z’/%3E %3Cpath fill=‘%23576B95’ d=‘M16.45 7.68c-.954 0-1.94.362-2.77 1.113l-1.676 1.676-1.853-1.838a3.787 3.787 0 0 0-2.63-.971 3.785 3.785 0 0 0-2.596 1.112 3.786 3.786 0 0 0-1.113 2.687c0 .97.368 1.938 1.105 2.679l7.082 6.527 7.226-6.678a3.787 3.787 0 0 0 .962-2.618 3.785 3.785 0 0 0-1.112-2.597A3.687 3.687 0 0 0 16.45 7.68zm3.473.243a4.985 4.985 0 0 1 1.464 3.418 4.98 4.98 0 0 1-1.29 3.47l-.017.02-7.47 6.903a.9.9 0 0 1-1.22 0l-7.305-6.73-.008-.01a4.986 4.986 0 0 1-1.465-3.535c0-1.279.488-2.56 1.465-3.536A4.985 4.985 0 0 1 7.494 6.46c1.24-.029 2.49.4 3.472 1.29l.01.01L12 8.774l.851-.85.01-.01c1.046-.951 2.322-1.434 3.59-1.434 1.273 0 2.52.49 3.472 1.442z’/%3E %3C/g%3E %3C/g%3E %3C/g%3E%3C/svg%3E) 推荐 ’ fill=‘%23000’ fill-opacity=’.9’/%3E%3C/svg%3E) 留言