Stablediffusion部署尝试

一、安装stabediffusion

从b站下载秋叶整合包,回来一键启动就行

二、在线部署下载插件

  1. adetailer插件(秋叶整合包自带)
  2. QR Toolkit插件
  3. controlnet模型(秋叶整合包自带)
  4. 下载monster-labs/control_v1p_sd15_qrcode_monster(包括control_v1p_sd15_qrcode_monster.safetensors以及control_v1p_sd15_qrcode_monster.yaml)
    地址:https://huggingface.co/monster-labs/control_v1p_sd15_qrcode_monster/tree/main
  5. 下载latentcat/latentcat-controlnet(包括control_v1p_sd15_brightness.safetensors)
    地址:https://huggingface.co/latentcat/latentcat-controlnet/tree/main/models
    (4、5放入”根目录\extensions\sd-webui-controlnet\models\control_v1p_sd15_brightness.safetensors”)

三、二维码处理

  1. 准备网址或二维码(二维码进入草料网解码https://cli.im/deqr/other)
  2. 打开webUI进入QRtoolkit,输入对应的链接并调整二维码使其均匀,可参考如下,最后扫一下看看能否识别
  3. 下载保存

四、controlnet设置

1、controlnet-qrcode设置

  1. 上传照片至controlnet
  2. 选择刚下载的模型qrcode
  3. 调整权重以及介入时间
    左至右为权重(越高越像二维码)、介入、解除(时间越长越像二维码)

2、controlnet-brightness设置

  1. 上传照片至controlnet单元1
  2. 选择刚下载的模型brightness
  3. 调整权重以及介入时间(以下参考)

五、ADetailer设置

  1. 勾选ADetailer
  2. 检测中蒙版图象腐蚀改为-4

六、绘图参数等设置

  1. 正向提示词:masterpiece,best quality,a beautiful girl 负向:lowres,bad anatomy,bad hands,text,error,missing fingers,extra digit,fewer digits,cropped,worst quality,low quality,normal quality,jpeg artifacts,signature,watermark,username,blurry,lowres,bad anatomy,bad hands,text,error,missing fingers,extra digit,fewer digits,cropped,worst quality,low quality,normal quality,jpeg artifacts,signature,watermark,username,blurry,
  2. 模型选择等如下所示:
  3. 最终效果展示

七、部分提示词及效果展示

具体效果在https://blog.yusialone.online/qrcode
正向提示词:Score_6,score_5,score_4,3d,bad quality,bad anatomy,worst quality,low quality,low resolution,extra fingers,blur,blurry,ugly,wrong proportions,watermark,image artifacts,lowres,ugly,jpeg artifacts,deformed,noisy image,deformation,duplicate horns,head wings,score_6,score_5,score_4,ugly,fat,muscular
正向提示词:score_9, score_8_up, score_7_up, score_6_up, watercolors, a little black cat asleep in a field of white flowers. pastels, dreamlike
正向提示词:score_9,score_8_up,score_7_up, 1girl, 24 years old, curvy, smooth, luscious, (medium perky tits), long hair, colorful hair, (Naked), uncensored, a swarm of butterflies around her body, hundreds of butterflies, cowboy shot, looking up at the sky and smiling, chip up, arched back, scenic background, (colorful butterfly tattoos), bokeh, sun rays, cinematic colors, sun, papercut
正向提示词:rating_explicit, score_9. score_8_up, score_7_up, nlstn, 1girl, horns, butterfly, bug, solo, glowing, on back, blue butterfly, lying, blue theme, glowing eyes, shirt, bangs, school uniform, open mouth, collared shirt, looking up, pink eyes, black hair, medium hair, red eyes, long hair, short sleeves, flower, from side, necktie, upper body, white shirt, vest, oni horns