基于 Stable Diffusion web UI 的 图片生成插件
-
Stable Diffusion Helper
基于 Stable Diffusion web UI 的 图片生成插件
使用前应该查阅的相关文档或项目
本插件对接的是
Stable Diffusion web UI的 REST API, 请在启动配置中开启选项,详情请自行查询 Stable Diffusion web UI Wiki使用
t2i以文生图
权限ID:xyz.cssxsh.mirai.plugin.stable-diffusion-helper:txt2img
例子:t2i steps=50 width=360 height=540 #德克萨斯 night, rain, wett2i 123456 (8k, RAW photo, best quality, masterpiece:1.2), (realistic, photo-realistic:1.37),omertosa,1girl,(Kpop idol), (aegyo sal:1),cute,cityscape, night, rain, wet, professional lighting, photon mapping, radiosity, physically-based rendering, <lora:arknightsTexasThe_v10:1>, <lora:koreanDollLikeness_v10:0.5>,Black pantyhose- 设置种子
t2i $seed - 设置参数
key=value - 使用Styles
#xxx - 第二行开始才会计入
prompt, 所以要两行以上才会触发指令
支持的参数
heightHeight360widthWidth540sampler_nameSampling methodEuler astepsSampling steps32batch_sizeBatch size1n_iterBatch count1cfg_scaleCFG Scale数字restore_facesRestore facesfalse/truetilingTilingfalse/trueenable_hrHires. fixfalse/truehr_second_pass_stepsHires Steps0denoising_strengthDenoising strength0.7hr_upscalerUpscalerLatenthr_scaleUpscale by2.0
styles查看已经载入的
Styles
权限ID:xyz.cssxsh.mirai.plugin.stable-diffusion-helper:styles
例子:styles风格Styles是Stable Diffusion web UI自带的功能,用于快捷的填充prompt和negative_prompt
重载SD重载
client.yml
权限ID:xyz.cssxsh.mirai.plugin.stable-diffusion-helper:reload
例子:重载SD配置
client.yml基本配置base_url基本网址dns_over_httpsDNStimeoutAPI超时时间
安装
MCL 指令安装
请确认 mcl.jar 的版本是 2.1.0+
./mcl --update-package xyz.cssxsh:stable-diffusion-helper --channel maven-stable --type plugins手动安装
爱发电
- 设置种子
-
大佬钛强了
-
太强了
-
牛,希望能加入cd控制,以防显卡被群友玩坏
-
你可以开个issue
-
大佬这个支持用COLAB云端部署的sd吗
-
你需要改一下启动脚本,把api模式打开
-
选择sampl采样器的时候遇到有空格的采样器名自动只算第一个单词然后就报错了。是我输入的不对还是需要改进一下这里呢(?
-
@茶色cha
你需要"xxx yy"双引号包起来 -
@cssxsh 尝试过了,还是只会提取第一个空格前的部分
-
请提供插件版本和具体的指令内容
-
-
samplers查看支持的采样器
权限ID:xyz.cssxsh.mirai.plugin.stable-diffusion-helper:samplers
例子:samplers采样器models查看支持的模型
权限ID:xyz.cssxsh.mirai.plugin.stable-diffusion-helper:models
例子:models模型集model xxxxx模型 xxxxx -
我想问一下那个t2i能不能修改的,一个群两个机器人使用同样的指令会导致两个机器人同时绘画。
-
@cssxsh 大佬请问API模式在哪里开启啊
-
?
-
请问api认证得到用户名和密码怎么配置
-
-
@cssxsh 就是配置文件里,我配置了API的url后,怎么配置api认证的用户名和密码
-