-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path_conf_schema.json
More file actions
270 lines (236 loc) · 10.5 KB
/
_conf_schema.json
File metadata and controls
270 lines (236 loc) · 10.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
{
"webui_url": {
"type": "string",
"description": "WebUI API地址",
"default": "http://127.0.0.1:7860",
"hint": "需要包含http://或https://前缀"
},
"verbose": {
"type": "bool",
"description": "控制回复的详略程度",
"default": true,
"hint": "设置为true时,将实时输出AI生图进行到了哪个阶段,否则仅输出最终图片"
},
"session_timeout_time": {
"type": "int",
"description": "会话判定超时时间,单位秒(s)",
"default": 120,
"hint": "默认为120 秒,根据需要修改。如果在这个时间内图片未能生成完毕,则终止本次请求,并发送提示消息。"
},
"max_concurrent_tasks": {
"type": "int",
"description": "最大并发任务数",
"default": 10,
"hint": "决定同一时间能处理的AI生图请求数量,请根据GPU显存大小和其他AI生图设置来酌情设定,免得在高频AI生图请求下爆显存导致程序运行缓慢甚至卡死"
},
"enable_generate_prompt": {
"type": "bool",
"description": "启用使用LLM生成正面提示词",
"default": true,
"hint": "设置为true时启用,开启时,当使用sd gen [提示词]指令时,将[提示词]先发送给LLM,再由LLM来生成正面提示词;关闭时,[提示词]内容将直接作为提示词送入Stable diffusion。仅影响/sd gen指令;LLM调用生图工具时会直接使用传入提示词"
},
"enable_upscale": {
"type": "bool",
"description": "启用高分辨率处理",
"default": false,
"hint": "设置为true时启用"
},
"enable_show_positive_prompt": {
"type": "bool",
"description": "启用输出正面提示词",
"default": false,
"hint": "设置为true时启用,开启时,用户发起AI生图请求后,将发送一条消息,内容为送入到Stable diffusion的正面提示词"
},
"global_prompt_group": {
"type": "object",
"description": "全局正负提示词",
"hint": "全局提示词仅可在此UI界面中设置,它们会自动附加到所有AI生图请求的提示词词组中,且无法利用指令关闭,来防止生成不该生成的图片,如果不需要,可以在此关闭。",
"items": {
"global_positive_prompt_switch": {
"type": "bool",
"description": "全局正面提示词开关",
"default": false,
"hint": "设置为true时启用,决定是否启用全局正面提示词"
},
"positive_prompt_add_in_head_or_tail_switch": {
"type": "bool",
"description": "全局/用户正面提示词加在头还是加在尾?",
"default": false,
"hint": "此开关设置为true时,全局正面提示词将会附着在用户输入的提示词组的开头,起到最大权重,如定义画风、设置安全等级。否则附着在尾部,权重偏低,适合用于修饰画面、提高出图质量、设定不重要的背景等。此开关也会影响用户预设正面提示词添加位置。"
},
"global_positive_prompt": {
"type": "string",
"description": "全局正面提示词",
"default": "",
"hint": "会自动附加到所有AI生图请求的提示词词组中"
},
"global_negative_prompt_switch": {
"type": "bool",
"description": "全局负面提示词开关",
"default": false,
"hint": "决定是否启用全局负面提示词"
},
"global_negative_prompt": {
"type": "string",
"description": "全局负面提示词",
"default": "(worst quality),(low quality:1.4),deformed,bad anatomy",
"hint": "用户只能在QQ等操作界面中只能输入正面提示词,无法输入负面提示词。所以请在这里设定全局负面提示词,它会自动附加到AI生图请求中,用于降低画面中特定的元素比例。"
}
}
},
"user_prompt_group": {
"type": "object",
"description": "用户预设正负提示词组合",
"hint": "在使用用户预设的正负提示词组合时,它们都会衔接在相应的正负全局提示词的尾部",
"items": {
"user_positive_prompt_group": {
"type": "object",
"description": "用户预设正面提示词组合",
"hint": "会自动附加到所有AI生图请求的提示词词组中,默认使用的正面提示词为1号。",
"items":{
"user_positive_prompt_list":{
"type": "int",
"description": "生效的用户预设正面提示词编号",
"hint": "供用户选择使用的预设正面提示词",
"options": [0,1,2,3],
"default": 0
},
"user_positive_prompt0": {
"type": "string",
"description": "用户预设正面提示词0",
"hint": "可以留空,以满足用户不想使用预设正面提示词的需求",
"default": ""
},
"user_positive_prompt1": {
"type": "string",
"description": "用户预设正面提示词1",
"default": ""
},
"user_positive_prompt2": {
"type": "string",
"description": "用户预设正面提示词2",
"default": ""
},
"user_positive_prompt3": {
"type": "string",
"description": "用户预设正面提示词3",
"default": ""
}
}
},
"user_negative_prompt_group": {
"type": "object",
"description": "用户预设提示词组合",
"hint": "用户只能在QQ等操作界面中只能输入正面提示词,无法输入负面提示词。所以请在这里设定全局负面提示词,它会自动附加到AI生图请求中,用于降低画面中特定的元素比例,默认使用的负面提示词为1号。",
"items": {
"user_negative_prompt_list":{
"type": "int",
"description": "生效的用户预设负面提示词编号",
"hint": "供用户选择使用的预设负面提示词",
"options": [0,1,2,3],
"default": 0
},
"user_negative_prompt0": {
"type": "string",
"description": "用户预设负面提示词0",
"hint": "可以留空,以满足用户不想使用预设负面提示词的需求",
"default": ""
},
"user_negative_prompt1": {
"type": "string",
"description": "用户预设负面提示词1",
"default": ""
},
"user_negative_prompt2": {
"type": "string",
"description": "用户预设负面提示词2",
"default": ""
},
"user_negative_prompt3": {
"type": "string",
"description": "用户预设负面提示词3",
"default": ""
}
}
}
}
},
"default_params": {
"type": "object",
"description": "默认生成参数",
"items": {
"width": {
"type": "int",
"description": "图像宽度",
"default": 512,
"min": 1,
"max": 2048,
"hint": "应当填入1-2048之间的整数"
},
"height": {
"type": "int",
"description": "图像高度",
"default": 512,
"min": 1,
"max": 2048,
"hint": "应当填入1-2048之间的整数"
},
"steps": {
"type": "int",
"description": "步数",
"default": 20,
"min": 10,
"max": 50
},
"sampler": {
"type": "string",
"description": "采样器",
"default": "",
"hint": "默认为空,使用 `/sd sampler list` 获取,使用 `/sd sampler set <index>` 设置"
},
"cfg_scale": {
"type": "float",
"description": "CFG比例",
"default": 7.0,
"min": 1.0,
"max": 20.0
},
"upscaler": {
"type": "string",
"description": "上采样算法",
"default": "",
"hint": "默认为空,使用 `/sd upscaler list` 获取,使用 `/sd upscaler set <index>` 设置"
},
"upscale_factor": {
"type": "int",
"description": "图像放大倍数",
"default": 2,
"min": 1,
"max": 8,
"hint": "放大倍数,通常为2、4等"
},
"batch_size": {
"type": "int",
"description": "每一次轮生成的图片数量",
"default": 1
},
"n_iter": {
"type": "int",
"description": "迭代次数",
"default": 1
}
}
},
"base_model": {
"type": "string",
"description": "基础模型",
"default": "",
"hint": "默认为空,使用 `/sd model list` 获取,使用 `/sd model set <index>` 设置,如不设置,则 自动使用Stable diffusion当前已加载的模型"
},
"prompt_guidelines": {
"type": "string",
"description": "LMM生成提示词时的附加限制",
"default": "",
"hint": "屏蔽色情内容等, 例如`任何被判断为色情的提示词都应该被替换,避免出现色情内容`"
}
}