Stable Diffusion 结合ControlNet 模型生成二维码教程

步骤 1. 创建普通二维码
首先,我们需要创建一个二维码。您可以在网上免费创建一个

图片[1]-Stable Diffusion ControlNet for QR Code

  • 输入您的网址,它有助于使用网址缩短。将纠错级别设置为高,因为我们要将图像与我们自己的图像混合。
  • 然后我们可以生成一个二维码并将其保存到您的本地电脑。

第 2 步:创建与 QR 码结合的艺术

我们现在可以找到我们喜欢的图像或从 Stable Diffusion 中的 txt2Img 选项卡生成一些图像。我将在txt2Img 选项卡中生成一个。

如果您没有在本地安装 Stable Diffusion,可以前往ThinkDiffusion进行安装。只需选择 A1111 并启动机器即可开始。

(以下截图来自Automatic1111或简称A1111,是Stable Diffusion事实上的UI)

好吧,让我们开始吧!

图片[2]-Stable Diffusion ControlNet for QR Code
  • (1) Set the stable diffusion checkpoint to revAnimated
  • (2) the sampling method as DPM++ 2M Karras
  • (3) sampling steps to 30
  • (4) enable restore faces ✅
  • (5) set the resolution to 768 x 768
  • (6) and a CFG scale of 11
图片[3]-Stable Diffusion ControlNet for QR Code

Step 2: ControlNet Unit 0

  • (1) Click the ControlNet dropdown
  • (2) and upload our qr code.
  • (3) Click Enable to ensure that ControlNet is activated ✅
  • (4) Set the Control Type to be All
  • (5) the Preprocessor to be inpaint_global_harmonious
  • (6) and the ControlNet model to be control_v1p_sd15_brightness
  • (7) Set the Control weight to be 0.35
图片[4]-Stable Diffusion ControlNet for QR Code

Step 3: ControlNet Unit 1

  • (1) Click over to the ControlNet Unit 1 Tab
  • (2) Within ControlNet Unit 1 we want to upload our qr code again
  • (3) Click Enable to ensure that ControlNet is activated ✅
  • (4) Set the Control Type to All
  • (5) the Preprocessor to inpaint_global_harmonious
  • (6) and the ControlNet model to control_v11f1e_sd15_tile
  • (7) Set the Control Weight to 0.5
  • (8) the starting Control Step to 0.35
  • (9) and the ending control step to 0.70
图片[5]-Stable Diffusion ControlNet for QR Code

Step 4: 点击生成…!

图片[6]-Stable Diffusion ControlNet for QR Code
© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容