b3xxf21f commited on
Commit
7fe1da0
·
1 Parent(s): 6a6340b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +873 -3
app.py CHANGED
@@ -1,5 +1,10 @@
1
  import os
2
- from subprocess import getoutput
 
 
 
 
 
3
 
4
  if not os.path.exists("stable-diffusion-webui"):
5
  os.system("git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui")
@@ -32,16 +37,881 @@ os.chdir("..")
32
  os.chdir("models/Stable-diffusion")
33
  models = [
34
  #"https://huggingface.co/Linaqruf/anything-v3.0/resolve/main/anything-v3-fp32-pruned.safetensors",
35
- #"https://huggingface.co/admruul/anything-v3.0/resolve/main/Anything-V3.0.vae.pt",
36
  "https://huggingface.co/m4gnett/any-pastel/resolve/main/AnyPastel-nsfw-fp16.safetensors",
37
- "https://huggingface.co/andite/anything-v4.0/resolve/main/anything-v4.0.vae.pt"
38
  ]
39
 
 
 
 
40
  os.system(f"wget {' '.join(models)}")
41
  os.chdir("../..")
42
 
 
 
 
 
 
 
 
 
43
  os.system("pip install -U -qq pip")
44
  os.system("pip install -qq -r requirements.txt")
45
  os.system("pip install -qq pytorch_lightning==1.7.7")
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  os.system("python launch.py --disable-console-progressbars")
 
1
  import os
2
+ import json
3
+
4
+ negative = "(worst quality, low quality:1.4), bad-image-v2-39000, bad_prompt_version2"
5
+ sampler = "DPM++ 2M Karras"
6
+ steps = 35
7
+ scale = 7.0
8
 
9
  if not os.path.exists("stable-diffusion-webui"):
10
  os.system("git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui")
 
37
  os.chdir("models/Stable-diffusion")
38
  models = [
39
  #"https://huggingface.co/Linaqruf/anything-v3.0/resolve/main/anything-v3-fp32-pruned.safetensors",
40
+ "https://huggingface.co/admruul/anything-v3.0/resolve/main/Anything-V3.0.vae.pt",
41
  "https://huggingface.co/m4gnett/any-pastel/resolve/main/AnyPastel-nsfw-fp16.safetensors",
42
+ # "https://huggingface.co/andite/anything-v4.0/resolve/main/anything-v4.0.vae.pt"
43
  ]
44
 
45
+ default_model = None
46
+ default_vae = None
47
+
48
  os.system(f"wget {' '.join(models)}")
49
  os.chdir("../..")
50
 
51
+ for model in models:
52
+ if None not in (default_model, default_vae) or default_model and 'vae.pt' not in ''.join(models):
53
+ break
54
+ if "vae.pt" in model:
55
+ default_vae = model.split('/')[-1]
56
+ else:
57
+ default_model = model.split('/')[-1]
58
+
59
  os.system("pip install -U -qq pip")
60
  os.system("pip install -qq -r requirements.txt")
61
  os.system("pip install -qq pytorch_lightning==1.7.7")
62
 
63
+ ui_config = {
64
+ "txt2img/Prompt/visible": True,
65
+ "txt2img/Prompt/value": "",
66
+ "txt2img/Negative prompt/visible": True,
67
+ "txt2img/Negative prompt/value": negative,
68
+ "txt2img/Style 1/visible": True,
69
+ "txt2img/Style 1/value": "None",
70
+ "txt2img/Style 2/visible": True,
71
+ "txt2img/Style 2/value": "None",
72
+ "txt2img/Sampling method/visible": True,
73
+ "txt2img/Sampling method/value": sampler,
74
+ "txt2img/Sampling steps/visible": True,
75
+ "txt2img/Sampling steps/value": steps,
76
+ "txt2img/Sampling steps/minimum": 1,
77
+ "txt2img/Sampling steps/maximum": 150,
78
+ "txt2img/Sampling steps/step": 1,
79
+ "txt2img/Width/visible": True,
80
+ "txt2img/Width/value": 512,
81
+ "txt2img/Width/minimum": 64,
82
+ "txt2img/Width/maximum": 2048,
83
+ "txt2img/Width/step": 8,
84
+ "txt2img/Height/visible": True,
85
+ "txt2img/Height/value": 768,
86
+ "txt2img/Height/minimum": 64,
87
+ "txt2img/Height/maximum": 2048,
88
+ "txt2img/Height/step": 8,
89
+ "txt2img/Batch count/visible": True,
90
+ "txt2img/Batch count/value": 1,
91
+ "txt2img/Batch count/minimum": 1,
92
+ "txt2img/Batch count/maximum": 100,
93
+ "txt2img/Batch count/step": 1,
94
+ "txt2img/Batch size/visible": True,
95
+ "txt2img/Batch size/value": 1,
96
+ "txt2img/Batch size/minimum": 1,
97
+ "txt2img/Batch size/maximum": 8,
98
+ "txt2img/Batch size/step": 1,
99
+ "txt2img/CFG Scale/visible": True,
100
+ "txt2img/CFG Scale/value": scale,
101
+ "txt2img/CFG Scale/minimum": 1.0,
102
+ "txt2img/CFG Scale/maximum": 30.0,
103
+ "txt2img/CFG Scale/step": 0.5,
104
+ "txt2img/Seed/visible": True,
105
+ "txt2img/Seed/value": -1.0,
106
+ "txt2img/Extra/visible": True,
107
+ "txt2img/Extra/value": False,
108
+ "txt2img/Variation seed/visible": True,
109
+ "txt2img/Variation seed/value": -1.0,
110
+ "txt2img/Variation strength/visible": True,
111
+ "txt2img/Variation strength/value": 0.0,
112
+ "txt2img/Variation strength/minimum": 0,
113
+ "txt2img/Variation strength/maximum": 1,
114
+ "txt2img/Variation strength/step": 0.01,
115
+ "txt2img/Resize seed from width/visible": True,
116
+ "txt2img/Resize seed from width/value": 0,
117
+ "txt2img/Resize seed from width/minimum": 0,
118
+ "txt2img/Resize seed from width/maximum": 2048,
119
+ "txt2img/Resize seed from width/step": 8,
120
+ "txt2img/Resize seed from height/visible": True,
121
+ "txt2img/Resize seed from height/value": 0,
122
+ "txt2img/Resize seed from height/minimum": 0,
123
+ "txt2img/Resize seed from height/maximum": 2048,
124
+ "txt2img/Resize seed from height/step": 8,
125
+ "txt2img/Restore faces/visible": True,
126
+ "txt2img/Restore faces/value": False,
127
+ "txt2img/Tiling/visible": True,
128
+ "txt2img/Tiling/value": False,
129
+ "txt2img/Hires. fix/visible": True,
130
+ "txt2img/Hires. fix/value": False,
131
+ "txt2img/Upscaler/visible": True,
132
+ "txt2img/Upscaler/value": "Latent",
133
+ "txt2img/Hires steps/visible": True,
134
+ "txt2img/Hires steps/value": 0,
135
+ "txt2img/Hires steps/minimum": 0,
136
+ "txt2img/Hires steps/maximum": 150,
137
+ "txt2img/Hires steps/step": 1,
138
+ "txt2img/Denoising strength/visible": True,
139
+ "txt2img/Denoising strength/value": 0.7,
140
+ "txt2img/Denoising strength/minimum": 0.0,
141
+ "txt2img/Denoising strength/maximum": 1.0,
142
+ "txt2img/Denoising strength/step": 0.01,
143
+ "txt2img/Upscale by/visible": True,
144
+ "txt2img/Upscale by/value": 2.0,
145
+ "txt2img/Upscale by/minimum": 1.0,
146
+ "txt2img/Upscale by/maximum": 4.0,
147
+ "txt2img/Upscale by/step": 0.05,
148
+ "txt2img/Resize width to/visible": True,
149
+ "txt2img/Resize width to/value": 0,
150
+ "txt2img/Resize width to/minimum": 0,
151
+ "txt2img/Resize width to/maximum": 2048,
152
+ "txt2img/Resize width to/step": 8,
153
+ "txt2img/Resize height to/visible": True,
154
+ "txt2img/Resize height to/value": 0,
155
+ "txt2img/Resize height to/minimum": 0,
156
+ "txt2img/Resize height to/maximum": 2048,
157
+ "txt2img/Resize height to/step": 8,
158
+ "txt2img/Script/visible": True,
159
+ "txt2img/Script/value": "None",
160
+ "customscript/prompt_matrix.py/txt2img/Put variable parts at start of prompt/visible": True,
161
+ "customscript/prompt_matrix.py/txt2img/Put variable parts at start of prompt/value": False,
162
+ "customscript/prompt_matrix.py/txt2img/Use different seed for each picture/visible": True,
163
+ "customscript/prompt_matrix.py/txt2img/Use different seed for each picture/value": False,
164
+ "customscript/prompts_from_file.py/txt2img/Iterate seed every line/visible": True,
165
+ "customscript/prompts_from_file.py/txt2img/Iterate seed every line/value": False,
166
+ "customscript/prompts_from_file.py/txt2img/Use same random seed for all lines/visible": True,
167
+ "customscript/prompts_from_file.py/txt2img/Use same random seed for all lines/value": False,
168
+ "customscript/prompts_from_file.py/txt2img/List of prompt inputs/visible": True,
169
+ "customscript/prompts_from_file.py/txt2img/List of prompt inputs/value": "",
170
+ "customscript/xy_grid.py/txt2img/X type/visible": True,
171
+ "customscript/xy_grid.py/txt2img/X type/value": "Seed",
172
+ "customscript/xy_grid.py/txt2img/X values/visible": True,
173
+ "customscript/xy_grid.py/txt2img/X values/value": "",
174
+ "customscript/xy_grid.py/txt2img/Y type/visible": True,
175
+ "customscript/xy_grid.py/txt2img/Y type/value": "Nothing",
176
+ "customscript/xy_grid.py/txt2img/Y values/visible": True,
177
+ "customscript/xy_grid.py/txt2img/Y values/value": "",
178
+ "customscript/xy_grid.py/txt2img/Draw legend/visible": True,
179
+ "customscript/xy_grid.py/txt2img/Draw legend/value": True,
180
+ "customscript/xy_grid.py/txt2img/Include Separate Images/visible": True,
181
+ "customscript/xy_grid.py/txt2img/Include Separate Images/value": False,
182
+ "customscript/xy_grid.py/txt2img/Keep -1 for seeds/visible": True,
183
+ "customscript/xy_grid.py/txt2img/Keep -1 for seeds/value": False,
184
+ "img2img/Prompt/visible": True,
185
+ "img2img/Prompt/value": "",
186
+ "img2img/Negative prompt/visible": True,
187
+ "img2img/Negative prompt/value": "",
188
+ "img2img/Style 1/visible": True,
189
+ "img2img/Style 1/value": "None",
190
+ "img2img/Style 2/visible": True,
191
+ "img2img/Style 2/value": "None",
192
+ "img2img/Input directory/visible": True,
193
+ "img2img/Input directory/value": "",
194
+ "img2img/Output directory/visible": True,
195
+ "img2img/Output directory/value": "",
196
+ "img2img/Resize mode/visible": True,
197
+ "img2img/Resize mode/value": "Just resize",
198
+ "img2img/Mask blur/visible": True,
199
+ "img2img/Mask blur/value": 4,
200
+ "img2img/Mask blur/minimum": 0,
201
+ "img2img/Mask blur/maximum": 64,
202
+ "img2img/Mask blur/step": 1,
203
+ "img2img/Mask transparency/value": 0,
204
+ "img2img/Mask transparency/minimum": 0,
205
+ "img2img/Mask transparency/maximum": 100,
206
+ "img2img/Mask transparency/step": 1,
207
+ "img2img/Mask mode/visible": True,
208
+ "img2img/Mask mode/value": "Inpaint masked",
209
+ "img2img/Masked content/visible": True,
210
+ "img2img/Masked content/value": "original",
211
+ "img2img/Inpaint area/visible": True,
212
+ "img2img/Inpaint area/value": "Whole picture",
213
+ "img2img/Only masked padding, pixels/visible": True,
214
+ "img2img/Only masked padding, pixels/value": 32,
215
+ "img2img/Only masked padding, pixels/minimum": 0,
216
+ "img2img/Only masked padding, pixels/maximum": 256,
217
+ "img2img/Only masked padding, pixels/step": 4,
218
+ "img2img/Sampling method/visible": True,
219
+ "img2img/Sampling method/value": "Euler a",
220
+ "img2img/Sampling steps/visible": True,
221
+ "img2img/Sampling steps/value": 20,
222
+ "img2img/Sampling steps/minimum": 1,
223
+ "img2img/Sampling steps/maximum": 150,
224
+ "img2img/Sampling steps/step": 1,
225
+ "img2img/Width/visible": True,
226
+ "img2img/Width/value": 512,
227
+ "img2img/Width/minimum": 64,
228
+ "img2img/Width/maximum": 2048,
229
+ "img2img/Width/step": 8,
230
+ "img2img/Height/visible": True,
231
+ "img2img/Height/value": 512,
232
+ "img2img/Height/minimum": 64,
233
+ "img2img/Height/maximum": 2048,
234
+ "img2img/Height/step": 8,
235
+ "img2img/Batch count/visible": True,
236
+ "img2img/Batch count/value": 1,
237
+ "img2img/Batch count/minimum": 1,
238
+ "img2img/Batch count/maximum": 100,
239
+ "img2img/Batch count/step": 1,
240
+ "img2img/Batch size/visible": True,
241
+ "img2img/Batch size/value": 1,
242
+ "img2img/Batch size/minimum": 1,
243
+ "img2img/Batch size/maximum": 8,
244
+ "img2img/Batch size/step": 1,
245
+ "img2img/CFG Scale/visible": True,
246
+ "img2img/CFG Scale/value": 7.0,
247
+ "img2img/CFG Scale/minimum": 1.0,
248
+ "img2img/CFG Scale/maximum": 30.0,
249
+ "img2img/CFG Scale/step": 0.5,
250
+ "img2img/Denoising strength/visible": True,
251
+ "img2img/Denoising strength/value": 0.75,
252
+ "img2img/Denoising strength/minimum": 0.0,
253
+ "img2img/Denoising strength/maximum": 1.0,
254
+ "img2img/Denoising strength/step": 0.01,
255
+ "img2img/Seed/visible": True,
256
+ "img2img/Seed/value": -1.0,
257
+ "img2img/Extra/visible": True,
258
+ "img2img/Extra/value": False,
259
+ "img2img/Variation seed/visible": True,
260
+ "img2img/Variation seed/value": -1.0,
261
+ "img2img/Variation strength/visible": True,
262
+ "img2img/Variation strength/value": 0.0,
263
+ "img2img/Variation strength/minimum": 0,
264
+ "img2img/Variation strength/maximum": 1,
265
+ "img2img/Variation strength/step": 0.01,
266
+ "img2img/Resize seed from width/visible": True,
267
+ "img2img/Resize seed from width/value": 0,
268
+ "img2img/Resize seed from width/minimum": 0,
269
+ "img2img/Resize seed from width/maximum": 2048,
270
+ "img2img/Resize seed from width/step": 8,
271
+ "img2img/Resize seed from height/visible": True,
272
+ "img2img/Resize seed from height/value": 0,
273
+ "img2img/Resize seed from height/minimum": 0,
274
+ "img2img/Resize seed from height/maximum": 2048,
275
+ "img2img/Resize seed from height/step": 8,
276
+ "img2img/Restore faces/visible": True,
277
+ "img2img/Restore faces/value": False,
278
+ "img2img/Tiling/visible": True,
279
+ "img2img/Tiling/value": False,
280
+ "img2img/Script/visible": True,
281
+ "img2img/Script/value": "None",
282
+ "customscript/img2imgalt.py/img2img/Override `Sampling method` to Euler?(this method is built for it)/visible": True,
283
+ "customscript/img2imgalt.py/img2img/Override `Sampling method` to Euler?(this method is built for it)/value": True,
284
+ "customscript/img2imgalt.py/img2img/Override `prompt` to the same value as `original prompt`?(and `negative prompt`)/visible": True,
285
+ "customscript/img2imgalt.py/img2img/Override `prompt` to the same value as `original prompt`?(and `negative prompt`)/value": True,
286
+ "customscript/img2imgalt.py/img2img/Original prompt/visible": True,
287
+ "customscript/img2imgalt.py/img2img/Original prompt/value": "",
288
+ "customscript/img2imgalt.py/img2img/Original negative prompt/visible": True,
289
+ "customscript/img2imgalt.py/img2img/Original negative prompt/value": "",
290
+ "customscript/img2imgalt.py/img2img/Override `Sampling Steps` to the same value as `Decode steps`?/visible": True,
291
+ "customscript/img2imgalt.py/img2img/Override `Sampling Steps` to the same value as `Decode steps`?/value": True,
292
+ "customscript/img2imgalt.py/img2img/Decode steps/visible": True,
293
+ "customscript/img2imgalt.py/img2img/Decode steps/value": 50,
294
+ "customscript/img2imgalt.py/img2img/Decode steps/minimum": 1,
295
+ "customscript/img2imgalt.py/img2img/Decode steps/maximum": 150,
296
+ "customscript/img2imgalt.py/img2img/Decode steps/step": 1,
297
+ "customscript/img2imgalt.py/img2img/Override `Denoising strength` to 1?/visible": True,
298
+ "customscript/img2imgalt.py/img2img/Override `Denoising strength` to 1?/value": True,
299
+ "customscript/img2imgalt.py/img2img/Decode CFG scale/visible": True,
300
+ "customscript/img2imgalt.py/img2img/Decode CFG scale/value": 1.0,
301
+ "customscript/img2imgalt.py/img2img/Decode CFG scale/minimum": 0.0,
302
+ "customscript/img2imgalt.py/img2img/Decode CFG scale/maximum": 15.0,
303
+ "customscript/img2imgalt.py/img2img/Decode CFG scale/step": 0.1,
304
+ "customscript/img2imgalt.py/img2img/Randomness/visible": True,
305
+ "customscript/img2imgalt.py/img2img/Randomness/value": 0.0,
306
+ "customscript/img2imgalt.py/img2img/Randomness/minimum": 0.0,
307
+ "customscript/img2imgalt.py/img2img/Randomness/maximum": 1.0,
308
+ "customscript/img2imgalt.py/img2img/Randomness/step": 0.01,
309
+ "customscript/img2imgalt.py/img2img/Sigma adjustment for finding noise for image/visible": True,
310
+ "customscript/img2imgalt.py/img2img/Sigma adjustment for finding noise for image/value": False,
311
+ "customscript/loopback.py/img2img/Loops/visible": True,
312
+ "customscript/loopback.py/img2img/Loops/value": 4,
313
+ "customscript/loopback.py/img2img/Loops/minimum": 1,
314
+ "customscript/loopback.py/img2img/Loops/maximum": 32,
315
+ "customscript/loopback.py/img2img/Loops/step": 1,
316
+ "customscript/loopback.py/img2img/Denoising strength change factor/visible": True,
317
+ "customscript/loopback.py/img2img/Denoising strength change factor/value": 1,
318
+ "customscript/loopback.py/img2img/Denoising strength change factor/minimum": 0.9,
319
+ "customscript/loopback.py/img2img/Denoising strength change factor/maximum": 1.1,
320
+ "customscript/loopback.py/img2img/Denoising strength change factor/step": 0.01,
321
+ "customscript/outpainting_mk_2.py/img2img/Pixels to expand/visible": True,
322
+ "customscript/outpainting_mk_2.py/img2img/Pixels to expand/value": 128,
323
+ "customscript/outpainting_mk_2.py/img2img/Pixels to expand/minimum": 8,
324
+ "customscript/outpainting_mk_2.py/img2img/Pixels to expand/maximum": 256,
325
+ "customscript/outpainting_mk_2.py/img2img/Pixels to expand/step": 8,
326
+ "customscript/outpainting_mk_2.py/img2img/Mask blur/visible": True,
327
+ "customscript/outpainting_mk_2.py/img2img/Mask blur/value": 8,
328
+ "customscript/outpainting_mk_2.py/img2img/Mask blur/minimum": 0,
329
+ "customscript/outpainting_mk_2.py/img2img/Mask blur/maximum": 64,
330
+ "customscript/outpainting_mk_2.py/img2img/Mask blur/step": 1,
331
+ "customscript/outpainting_mk_2.py/img2img/Fall-off exponent (lower=higher detail)/visible": True,
332
+ "customscript/outpainting_mk_2.py/img2img/Fall-off exponent (lower=higher detail)/value": 1.0,
333
+ "customscript/outpainting_mk_2.py/img2img/Fall-off exponent (lower=higher detail)/minimum": 0.0,
334
+ "customscript/outpainting_mk_2.py/img2img/Fall-off exponent (lower=higher detail)/maximum": 4.0,
335
+ "customscript/outpainting_mk_2.py/img2img/Fall-off exponent (lower=higher detail)/step": 0.01,
336
+ "customscript/outpainting_mk_2.py/img2img/Color variation/visible": True,
337
+ "customscript/outpainting_mk_2.py/img2img/Color variation/value": 0.05,
338
+ "customscript/outpainting_mk_2.py/img2img/Color variation/minimum": 0.0,
339
+ "customscript/outpainting_mk_2.py/img2img/Color variation/maximum": 1.0,
340
+ "customscript/outpainting_mk_2.py/img2img/Color variation/step": 0.01,
341
+ "customscript/poor_mans_outpainting.py/img2img/Pixels to expand/visible": True,
342
+ "customscript/poor_mans_outpainting.py/img2img/Pixels to expand/value": 128,
343
+ "customscript/poor_mans_outpainting.py/img2img/Pixels to expand/minimum": 8,
344
+ "customscript/poor_mans_outpainting.py/img2img/Pixels to expand/maximum": 256,
345
+ "customscript/poor_mans_outpainting.py/img2img/Pixels to expand/step": 8,
346
+ "customscript/poor_mans_outpainting.py/img2img/Mask blur/visible": True,
347
+ "customscript/poor_mans_outpainting.py/img2img/Mask blur/value": 4,
348
+ "customscript/poor_mans_outpainting.py/img2img/Mask blur/minimum": 0,
349
+ "customscript/poor_mans_outpainting.py/img2img/Mask blur/maximum": 64,
350
+ "customscript/poor_mans_outpainting.py/img2img/Mask blur/step": 1,
351
+ "customscript/poor_mans_outpainting.py/img2img/Masked content/visible": True,
352
+ "customscript/poor_mans_outpainting.py/img2img/Masked content/value": "fill",
353
+ "customscript/prompt_matrix.py/img2img/Put variable parts at start of prompt/visible": True,
354
+ "customscript/prompt_matrix.py/img2img/Put variable parts at start of prompt/value": False,
355
+ "customscript/prompt_matrix.py/img2img/Use different seed for each picture/visible": True,
356
+ "customscript/prompt_matrix.py/img2img/Use different seed for each picture/value": False,
357
+ "customscript/prompts_from_file.py/img2img/Iterate seed every line/visible": True,
358
+ "customscript/prompts_from_file.py/img2img/Iterate seed every line/value": False,
359
+ "customscript/prompts_from_file.py/img2img/Use same random seed for all lines/visible": True,
360
+ "customscript/prompts_from_file.py/img2img/Use same random seed for all lines/value": False,
361
+ "customscript/prompts_from_file.py/img2img/List of prompt inputs/visible": True,
362
+ "customscript/prompts_from_file.py/img2img/List of prompt inputs/value": "",
363
+ "customscript/sd_upscale.py/img2img/Tile overlap/visible": True,
364
+ "customscript/sd_upscale.py/img2img/Tile overlap/value": 64,
365
+ "customscript/sd_upscale.py/img2img/Tile overlap/minimum": 0,
366
+ "customscript/sd_upscale.py/img2img/Tile overlap/maximum": 256,
367
+ "customscript/sd_upscale.py/img2img/Tile overlap/step": 16,
368
+ "customscript/sd_upscale.py/img2img/Scale Factor/visible": True,
369
+ "customscript/sd_upscale.py/img2img/Scale Factor/value": 2.0,
370
+ "customscript/sd_upscale.py/img2img/Scale Factor/minimum": 1.0,
371
+ "customscript/sd_upscale.py/img2img/Scale Factor/maximum": 4.0,
372
+ "customscript/sd_upscale.py/img2img/Scale Factor/step": 0.05,
373
+ "customscript/sd_upscale.py/img2img/Upscaler/visible": True,
374
+ "customscript/sd_upscale.py/img2img/Upscaler/value": "None",
375
+ "customscript/xy_grid.py/img2img/X type/visible": True,
376
+ "customscript/xy_grid.py/img2img/X type/value": "Seed",
377
+ "customscript/xy_grid.py/img2img/X values/visible": True,
378
+ "customscript/xy_grid.py/img2img/X values/value": "",
379
+ "customscript/xy_grid.py/img2img/Y type/visible": True,
380
+ "customscript/xy_grid.py/img2img/Y type/value": "Nothing",
381
+ "customscript/xy_grid.py/img2img/Y values/visible": True,
382
+ "customscript/xy_grid.py/img2img/Y values/value": "",
383
+ "customscript/xy_grid.py/img2img/Draw legend/visible": True,
384
+ "customscript/xy_grid.py/img2img/Draw legend/value": True,
385
+ "customscript/xy_grid.py/img2img/Include Separate Images/visible": True,
386
+ "customscript/xy_grid.py/img2img/Include Separate Images/value": False,
387
+ "customscript/xy_grid.py/img2img/Keep -1 for seeds/visible": True,
388
+ "customscript/xy_grid.py/img2img/Keep -1 for seeds/value": False,
389
+ "extras/Input directory/visible": True,
390
+ "extras/Input directory/value": "",
391
+ "extras/Output directory/visible": True,
392
+ "extras/Output directory/value": "",
393
+ "extras/Show result images/visible": True,
394
+ "extras/Show result images/value": True,
395
+ "extras/Resize/visible": True,
396
+ "extras/Resize/value": 4,
397
+ "extras/Resize/minimum": 1.0,
398
+ "extras/Resize/maximum": 8.0,
399
+ "extras/Resize/step": 0.05,
400
+ "extras/Width/visible": True,
401
+ "extras/Width/value": 512,
402
+ "extras/Height/visible": True,
403
+ "extras/Height/value": 512,
404
+ "extras/Crop to fit/visible": True,
405
+ "extras/Crop to fit/value": True,
406
+ "extras/Upscaler 1/visible": True,
407
+ "extras/Upscaler 1/value": "None",
408
+ "extras/Upscaler 2/visible": True,
409
+ "extras/Upscaler 2/value": "None",
410
+ "extras/Upscaler 2 visibility/visible": True,
411
+ "extras/Upscaler 2 visibility/value": 1,
412
+ "extras/Upscaler 2 visibility/minimum": 0.0,
413
+ "extras/Upscaler 2 visibility/maximum": 1.0,
414
+ "extras/Upscaler 2 visibility/step": 0.001,
415
+ "extras/GFPGAN visibility/visible": True,
416
+ "extras/GFPGAN visibility/value": 0,
417
+ "extras/GFPGAN visibility/minimum": 0.0,
418
+ "extras/GFPGAN visibility/maximum": 1.0,
419
+ "extras/GFPGAN visibility/step": 0.001,
420
+ "extras/CodeFormer visibility/visible": True,
421
+ "extras/CodeFormer visibility/value": 0,
422
+ "extras/CodeFormer visibility/minimum": 0.0,
423
+ "extras/CodeFormer visibility/maximum": 1.0,
424
+ "extras/CodeFormer visibility/step": 0.001,
425
+ "extras/CodeFormer weight (0 = maximum effect, 1 = minimum effect)/visible": True,
426
+ "extras/CodeFormer weight (0 = maximum effect, 1 = minimum effect)/value": 0,
427
+ "extras/CodeFormer weight (0 = maximum effect, 1 = minimum effect)/minimum": 0.0,
428
+ "extras/CodeFormer weight (0 = maximum effect, 1 = minimum effect)/maximum": 1.0,
429
+ "extras/CodeFormer weight (0 = maximum effect, 1 = minimum effect)/step": 0.001,
430
+ "extras/Upscale Before Restoring Faces/visible": True,
431
+ "extras/Upscale Before Restoring Faces/value": False,
432
+ "modelmerger/Primary model (A)/visible": True,
433
+ "modelmerger/Primary model (A)/value": None,
434
+ "modelmerger/Secondary model (B)/visible": True,
435
+ "modelmerger/Secondary model (B)/value": None,
436
+ "modelmerger/Tertiary model (C)/visible": True,
437
+ "modelmerger/Tertiary model (C)/value": None,
438
+ "modelmerger/Custom Name (Optional)/visible": True,
439
+ "modelmerger/Custom Name (Optional)/value": "",
440
+ "modelmerger/Multiplier (M) - set to 0 to get model A/visible": True,
441
+ "modelmerger/Multiplier (M) - set to 0 to get model A/value": 0.3,
442
+ "modelmerger/Multiplier (M) - set to 0 to get model A/minimum": 0.0,
443
+ "modelmerger/Multiplier (M) - set to 0 to get model A/maximum": 1.0,
444
+ "modelmerger/Multiplier (M) - set to 0 to get model A/step": 0.05,
445
+ "modelmerger/Interpolation Method/visible": True,
446
+ "modelmerger/Interpolation Method/value": "Weighted sum",
447
+ "modelmerger/Checkpoint format/visible": True,
448
+ "modelmerger/Checkpoint format/value": "ckpt",
449
+ "modelmerger/Save as float16/visible": True,
450
+ "modelmerger/Save as float16/value": False,
451
+ "modelmerger/Copy config from/visible": True,
452
+ "modelmerger/Copy config from/value": "A, B or C",
453
+ "train/Name/visible": True,
454
+ "train/Name/value": "",
455
+ "train/Initialization text/visible": True,
456
+ "train/Initialization text/value": "*",
457
+ "train/Number of vectors per token/visible": True,
458
+ "train/Number of vectors per token/value": 1,
459
+ "train/Number of vectors per token/minimum": 1,
460
+ "train/Number of vectors per token/maximum": 75,
461
+ "train/Number of vectors per token/step": 1,
462
+ "train/Overwrite Old Embedding/visible": True,
463
+ "train/Overwrite Old Embedding/value": False,
464
+ "train/Enter hypernetwork layer structure/visible": True,
465
+ "train/Enter hypernetwork layer structure/value": "1, 2, 1",
466
+ "train/Select activation function of hypernetwork. Recommended : Swish / Linear(none)/visible": True,
467
+ "train/Select activation function of hypernetwork. Recommended : Swish / Linear(none)/value": "linear",
468
+ "train/Select Layer weights initialization. Recommended: Kaiming for relu-like, Xavier for sigmoid-like, Normal otherwise/visible": True,
469
+ "train/Select Layer weights initialization. Recommended: Kaiming for relu-like, Xavier for sigmoid-like, Normal otherwise/value": "Normal",
470
+ "train/Add layer normalization/visible": True,
471
+ "train/Add layer normalization/value": False,
472
+ "train/Use dropout/visible": True,
473
+ "train/Use dropout/value": False,
474
+ "train/Enter hypernetwork Dropout structure (or empty). Recommended : 0~0.35 incrementing sequence: 0, 0.05, 0.15/visible": True,
475
+ "train/Enter hypernetwork Dropout structure (or empty). Recommended : 0~0.35 incrementing sequence: 0, 0.05, 0.15/value": "0, 0, 0",
476
+ "train/Overwrite Old Hypernetwork/visible": True,
477
+ "train/Overwrite Old Hypernetwork/value": False,
478
+ "train/Source directory/visible": True,
479
+ "train/Source directory/value": "",
480
+ "train/Destination directory/visible": True,
481
+ "train/Destination directory/value": "",
482
+ "train/Width/visible": True,
483
+ "train/Width/value": 512,
484
+ "train/Width/minimum": 64,
485
+ "train/Width/maximum": 2048,
486
+ "train/Width/step": 8,
487
+ "train/Height/visible": True,
488
+ "train/Height/value": 512,
489
+ "train/Height/minimum": 64,
490
+ "train/Height/maximum": 2048,
491
+ "train/Height/step": 8,
492
+ "train/Existing Caption txt Action/visible": True,
493
+ "train/Existing Caption txt Action/value": "ignore",
494
+ "train/Create flipped copies/visible": True,
495
+ "train/Create flipped copies/value": False,
496
+ "train/Split oversized images/visible": True,
497
+ "train/Split oversized images/value": False,
498
+ "train/Auto focal point crop/visible": True,
499
+ "train/Auto focal point crop/value": False,
500
+ "train/Use BLIP for caption/visible": True,
501
+ "train/Use BLIP for caption/value": False,
502
+ "train/Use deepbooru for caption/visible": True,
503
+ "train/Use deepbooru for caption/value": False,
504
+ "train/Split image threshold/visible": True,
505
+ "train/Split image threshold/value": 0.5,
506
+ "train/Split image threshold/minimum": 0.0,
507
+ "train/Split image threshold/maximum": 1.0,
508
+ "train/Split image threshold/step": 0.05,
509
+ "train/Split image overlap ratio/visible": True,
510
+ "train/Split image overlap ratio/value": 0.2,
511
+ "train/Split image overlap ratio/minimum": 0.0,
512
+ "train/Split image overlap ratio/maximum": 0.9,
513
+ "train/Split image overlap ratio/step": 0.05,
514
+ "train/Focal point face weight/visible": True,
515
+ "train/Focal point face weight/value": 0.9,
516
+ "train/Focal point face weight/minimum": 0.0,
517
+ "train/Focal point face weight/maximum": 1.0,
518
+ "train/Focal point face weight/step": 0.05,
519
+ "train/Focal point entropy weight/visible": True,
520
+ "train/Focal point entropy weight/value": 0.15,
521
+ "train/Focal point entropy weight/minimum": 0.0,
522
+ "train/Focal point entropy weight/maximum": 1.0,
523
+ "train/Focal point entropy weight/step": 0.05,
524
+ "train/Focal point edges weight/visible": True,
525
+ "train/Focal point edges weight/value": 0.5,
526
+ "train/Focal point edges weight/minimum": 0.0,
527
+ "train/Focal point edges weight/maximum": 1.0,
528
+ "train/Focal point edges weight/step": 0.05,
529
+ "train/Create debug image/visible": True,
530
+ "train/Create debug image/value": False,
531
+ "train/Embedding/visible": True,
532
+ "train/Embedding/value": None,
533
+ "train/Hypernetwork/visible": True,
534
+ "train/Hypernetwork/value": None,
535
+ "train/Embedding Learning rate/visible": True,
536
+ "train/Embedding Learning rate/value": "0.005",
537
+ "train/Hypernetwork Learning rate/visible": True,
538
+ "train/Hypernetwork Learning rate/value": "0.00001",
539
+ "train/Gradient Clipping/visible": True,
540
+ "train/Gradient Clipping/value": "disabled",
541
+ "train/Batch size/visible": True,
542
+ "train/Batch size/value": 1,
543
+ "train/Gradient accumulation steps/visible": True,
544
+ "train/Gradient accumulation steps/value": 1,
545
+ "train/Dataset directory/visible": True,
546
+ "train/Dataset directory/value": "",
547
+ "train/Log directory/visible": True,
548
+ "train/Log directory/value": "textual_inversion",
549
+ "train/Prompt template/visible": True,
550
+ "train/Prompt template/value": "style_filewords.txt",
551
+ "train/Do not resize images/visible": True,
552
+ "train/Do not resize images/value": False,
553
+ "train/Max steps/visible": True,
554
+ "train/Max steps/value": 100000,
555
+ "train/Save an image to log directory every N steps, 0 to disable/visible": True,
556
+ "train/Save an image to log directory every N steps, 0 to disable/value": 500,
557
+ "train/Save a copy of embedding to log directory every N steps, 0 to disable/visible": True,
558
+ "train/Save a copy of embedding to log directory every N steps, 0 to disable/value": 500,
559
+ "train/Save images with embedding in PNG chunks/visible": True,
560
+ "train/Save images with embedding in PNG chunks/value": True,
561
+ "train/Read parameters (prompt, etc...) from txt2img tab when making previews/visible": True,
562
+ "train/Read parameters (prompt, etc...) from txt2img tab when making previews/value": False,
563
+ "train/Shuffle tags by ',' when creating prompts./visible": True,
564
+ "train/Shuffle tags by ',' when creating prompts./value": False,
565
+ "train/Drop out tags when creating prompts./visible": True,
566
+ "train/Drop out tags when creating prompts./value": 0,
567
+ "train/Drop out tags when creating prompts./minimum": 0,
568
+ "train/Drop out tags when creating prompts./maximum": 1,
569
+ "train/Drop out tags when creating prompts./step": 0.1,
570
+ "train/Choose latent sampling method/visible": True,
571
+ "train/Choose latent sampling method/value": "once",
572
+ "txt2img/Sampling Steps/visible": True,
573
+ "txt2img/Sampling Steps/value": 20,
574
+ "txt2img/Sampling Steps/minimum": 1,
575
+ "txt2img/Sampling Steps/maximum": 150,
576
+ "txt2img/Sampling Steps/step": 1,
577
+ "txt2img/Highres. fix/visible": True,
578
+ "txt2img/Highres. fix/value": False,
579
+ "txt2img/Firstpass width/visible": True,
580
+ "txt2img/Firstpass width/value": 0,
581
+ "txt2img/Firstpass width/minimum": 0,
582
+ "txt2img/Firstpass width/maximum": 1024,
583
+ "txt2img/Firstpass width/step": 8,
584
+ "txt2img/Firstpass height/visible": True,
585
+ "txt2img/Firstpass height/value": 0,
586
+ "txt2img/Firstpass height/minimum": 0,
587
+ "txt2img/Firstpass height/maximum": 1024,
588
+ "txt2img/Firstpass height/step": 8,
589
+ "txt2img/New preset name/visible": True,
590
+ "txt2img/New preset name/value": "",
591
+ "txt2img/Make Zip when Save?/visible": True,
592
+ "txt2img/Make Zip when Save?/value": False,
593
+ "img2img/Masking mode/visible": True,
594
+ "img2img/Masking mode/value": "Inpaint masked",
595
+ "img2img/Inpaint at full resolution/visible": True,
596
+ "img2img/Inpaint at full resolution/value": False,
597
+ "img2img/Inpaint at full resolution padding, pixels/visible": True,
598
+ "img2img/Inpaint at full resolution padding, pixels/value": 32,
599
+ "img2img/Inpaint at full resolution padding, pixels/minimum": 0,
600
+ "img2img/Inpaint at full resolution padding, pixels/maximum": 256,
601
+ "img2img/Inpaint at full resolution padding, pixels/step": 4,
602
+ "img2img/Sampling Steps/visible": True,
603
+ "img2img/Sampling Steps/value": 20,
604
+ "img2img/Sampling Steps/minimum": 1,
605
+ "img2img/Sampling Steps/maximum": 150,
606
+ "img2img/Sampling Steps/step": 1,
607
+ "img2img/New preset name/visible": True,
608
+ "img2img/New preset name/value": "",
609
+ "img2img/Make Zip when Save?/visible": True,
610
+ "img2img/Make Zip when Save?/value": False,
611
+ "txt2img/Styles/visible": True,
612
+ "txt2img/Styles/value": [],
613
+ "txt2img/Override settings/value": None,
614
+ "customscript/xyz_grid.py/txt2img/X type/visible": True,
615
+ "customscript/xyz_grid.py/txt2img/X type/value": "Seed",
616
+ "customscript/xyz_grid.py/txt2img/X values/visible": True,
617
+ "customscript/xyz_grid.py/txt2img/X values/value": "",
618
+ "customscript/xyz_grid.py/txt2img/Y type/visible": True,
619
+ "customscript/xyz_grid.py/txt2img/Y type/value": "Nothing",
620
+ "customscript/xyz_grid.py/txt2img/Y values/visible": True,
621
+ "customscript/xyz_grid.py/txt2img/Y values/value": "",
622
+ "customscript/xyz_grid.py/txt2img/Z type/visible": True,
623
+ "customscript/xyz_grid.py/txt2img/Z type/value": "Nothing",
624
+ "customscript/xyz_grid.py/txt2img/Z values/visible": True,
625
+ "customscript/xyz_grid.py/txt2img/Z values/value": "",
626
+ "customscript/xyz_grid.py/txt2img/Draw legend/visible": True,
627
+ "customscript/xyz_grid.py/txt2img/Draw legend/value": True,
628
+ "customscript/xyz_grid.py/txt2img/Include Sub Images/visible": True,
629
+ "customscript/xyz_grid.py/txt2img/Include Sub Images/value": False,
630
+ "customscript/xyz_grid.py/txt2img/Include Sub Grids/visible": True,
631
+ "customscript/xyz_grid.py/txt2img/Include Sub Grids/value": False,
632
+ "customscript/xyz_grid.py/txt2img/Keep -1 for seeds/visible": True,
633
+ "customscript/xyz_grid.py/txt2img/Keep -1 for seeds/value": False,
634
+ "img2img/Styles/visible": True,
635
+ "img2img/Styles/value": [],
636
+ "img2img/Inpaint batch mask directory (required for inpaint batch processing only)/visible": True,
637
+ "img2img/Inpaint batch mask directory (required for inpaint batch processing only)/value": "",
638
+ "img2img/Override settings/value": None,
639
+ "customscript/xyz_grid.py/img2img/X type/visible": True,
640
+ "customscript/xyz_grid.py/img2img/X type/value": "Seed",
641
+ "customscript/xyz_grid.py/img2img/X values/visible": True,
642
+ "customscript/xyz_grid.py/img2img/X values/value": "",
643
+ "customscript/xyz_grid.py/img2img/Y type/visible": True,
644
+ "customscript/xyz_grid.py/img2img/Y type/value": "Nothing",
645
+ "customscript/xyz_grid.py/img2img/Y values/visible": True,
646
+ "customscript/xyz_grid.py/img2img/Y values/value": "",
647
+ "customscript/xyz_grid.py/img2img/Z type/visible": True,
648
+ "customscript/xyz_grid.py/img2img/Z type/value": "Nothing",
649
+ "customscript/xyz_grid.py/img2img/Z values/visible": True,
650
+ "customscript/xyz_grid.py/img2img/Z values/value": "",
651
+ "customscript/xyz_grid.py/img2img/Draw legend/visible": True,
652
+ "customscript/xyz_grid.py/img2img/Draw legend/value": True,
653
+ "customscript/xyz_grid.py/img2img/Include Sub Images/visible": True,
654
+ "customscript/xyz_grid.py/img2img/Include Sub Images/value": False,
655
+ "customscript/xyz_grid.py/img2img/Include Sub Grids/visible": True,
656
+ "customscript/xyz_grid.py/img2img/Include Sub Grids/value": False,
657
+ "customscript/xyz_grid.py/img2img/Keep -1 for seeds/visible": True,
658
+ "customscript/xyz_grid.py/img2img/Keep -1 for seeds/value": False,
659
+ "customscript/postprocessing_upscale.py/extras/Resize/visible": True,
660
+ "customscript/postprocessing_upscale.py/extras/Resize/value": 4,
661
+ "customscript/postprocessing_upscale.py/extras/Resize/minimum": 1.0,
662
+ "customscript/postprocessing_upscale.py/extras/Resize/maximum": 8.0,
663
+ "customscript/postprocessing_upscale.py/extras/Resize/step": 0.05,
664
+ "customscript/postprocessing_upscale.py/extras/Width/visible": True,
665
+ "customscript/postprocessing_upscale.py/extras/Width/value": 512,
666
+ "customscript/postprocessing_upscale.py/extras/Height/visible": True,
667
+ "customscript/postprocessing_upscale.py/extras/Height/value": 512,
668
+ "customscript/postprocessing_upscale.py/extras/Crop to fit/visible": True,
669
+ "customscript/postprocessing_upscale.py/extras/Crop to fit/value": True,
670
+ "customscript/postprocessing_upscale.py/extras/Upscaler 1/visible": True,
671
+ "customscript/postprocessing_upscale.py/extras/Upscaler 1/value": "None",
672
+ "customscript/postprocessing_upscale.py/extras/Upscaler 2/visible": True,
673
+ "customscript/postprocessing_upscale.py/extras/Upscaler 2/value": "None",
674
+ "customscript/postprocessing_upscale.py/extras/Upscaler 2 visibility/visible": True,
675
+ "customscript/postprocessing_upscale.py/extras/Upscaler 2 visibility/value": 0.0,
676
+ "customscript/postprocessing_upscale.py/extras/Upscaler 2 visibility/minimum": 0.0,
677
+ "customscript/postprocessing_upscale.py/extras/Upscaler 2 visibility/maximum": 1.0,
678
+ "customscript/postprocessing_upscale.py/extras/Upscaler 2 visibility/step": 0.001,
679
+ "customscript/postprocessing_gfpgan.py/extras/GFPGAN visibility/visible": True,
680
+ "customscript/postprocessing_gfpgan.py/extras/GFPGAN visibility/value": 0,
681
+ "customscript/postprocessing_gfpgan.py/extras/GFPGAN visibility/minimum": 0.0,
682
+ "customscript/postprocessing_gfpgan.py/extras/GFPGAN visibility/maximum": 1.0,
683
+ "customscript/postprocessing_gfpgan.py/extras/GFPGAN visibility/step": 0.001,
684
+ "customscript/postprocessing_codeformer.py/extras/CodeFormer visibility/visible": True,
685
+ "customscript/postprocessing_codeformer.py/extras/CodeFormer visibility/value": 0,
686
+ "customscript/postprocessing_codeformer.py/extras/CodeFormer visibility/minimum": 0.0,
687
+ "customscript/postprocessing_codeformer.py/extras/CodeFormer visibility/maximum": 1.0,
688
+ "customscript/postprocessing_codeformer.py/extras/CodeFormer visibility/step": 0.001,
689
+ "customscript/postprocessing_codeformer.py/extras/CodeFormer weight (0 = maximum effect, 1 = minimum effect)/visible": True,
690
+ "customscript/postprocessing_codeformer.py/extras/CodeFormer weight (0 = maximum effect, 1 = minimum effect)/value": 0,
691
+ "customscript/postprocessing_codeformer.py/extras/CodeFormer weight (0 = maximum effect, 1 = minimum effect)/minimum": 0.0,
692
+ "customscript/postprocessing_codeformer.py/extras/CodeFormer weight (0 = maximum effect, 1 = minimum effect)/maximum": 1.0,
693
+ "customscript/postprocessing_codeformer.py/extras/CodeFormer weight (0 = maximum effect, 1 = minimum effect)/step": 0.001,
694
+ "modelmerger/Bake in VAE/visible": True,
695
+ "modelmerger/Bake in VAE/value": "None",
696
+ "modelmerger/Discard weights with matching name/visible": True,
697
+ "modelmerger/Discard weights with matching name/value": "",
698
+ "train/Auto-sized crop/visible": True,
699
+ "train/Auto-sized crop/value": False,
700
+ "train/Dimension lower bound/visible": True,
701
+ "train/Dimension lower bound/value": 384,
702
+ "train/Dimension lower bound/minimum": 64,
703
+ "train/Dimension lower bound/maximum": 2048,
704
+ "train/Dimension lower bound/step": 8,
705
+ "train/Dimension upper bound/visible": True,
706
+ "train/Dimension upper bound/value": 768,
707
+ "train/Dimension upper bound/minimum": 64,
708
+ "train/Dimension upper bound/maximum": 2048,
709
+ "train/Dimension upper bound/step": 8,
710
+ "train/Area lower bound/visible": True,
711
+ "train/Area lower bound/value": 4096,
712
+ "train/Area lower bound/minimum": 4096,
713
+ "train/Area lower bound/maximum": 4194304,
714
+ "train/Area lower bound/step": 1,
715
+ "train/Area upper bound/visible": True,
716
+ "train/Area upper bound/value": 409600,
717
+ "train/Area upper bound/minimum": 4096,
718
+ "train/Area upper bound/maximum": 4194304,
719
+ "train/Area upper bound/step": 1,
720
+ "train/Resizing objective/visible": True,
721
+ "train/Resizing objective/value": "Maximize area",
722
+ "train/Error threshold/visible": True,
723
+ "train/Error threshold/value": 0.1,
724
+ "train/Error threshold/minimum": 0,
725
+ "train/Error threshold/maximum": 1,
726
+ "train/Error threshold/step": 0.01
727
+ }
728
+
729
+ config = {
730
+ "samples_save": False,
731
+ "samples_format": "png",
732
+ "samples_filename_pattern": "",
733
+ "save_images_add_number": True,
734
+ "grid_save": False,
735
+ "grid_format": "png",
736
+ "grid_extended_filename": False,
737
+ "grid_only_if_multiple": True,
738
+ "grid_prevent_empty_spots": False,
739
+ "n_rows": -1,
740
+ "enable_pnginfo": True,
741
+ "save_txt": False,
742
+ "save_images_before_face_restoration": False,
743
+ "save_images_before_highres_fix": False,
744
+ "save_images_before_color_correction": False,
745
+ "jpeg_quality": 80,
746
+ "export_for_4chan": True,
747
+ "use_original_name_batch": False,
748
+ "use_upscaler_name_as_suffix": False,
749
+ "save_selected_only": True,
750
+ "do_not_add_watermark": False,
751
+ "temp_dir": "",
752
+ "clean_temp_dir_at_start": False,
753
+ "outdir_samples": "",
754
+ "outdir_txt2img_samples": "outputs/txt2img-images",
755
+ "outdir_img2img_samples": "outputs/img2img-images",
756
+ "outdir_extras_samples": "outputs/extras-images",
757
+ "outdir_grids": "",
758
+ "outdir_txt2img_grids": "outputs/txt2img-grids",
759
+ "outdir_img2img_grids": "outputs/img2img-grids",
760
+ "outdir_save": "log/images",
761
+ "save_to_dirs": False,
762
+ "grid_save_to_dirs": False,
763
+ "use_save_to_dirs_for_ui": False,
764
+ "directories_filename_pattern": "",
765
+ "directories_max_prompt_words": 8,
766
+ "ESRGAN_tile": 192,
767
+ "ESRGAN_tile_overlap": 8,
768
+ "realesrgan_enabled_models": [
769
+ "R-ESRGAN 4x+",
770
+ "R-ESRGAN 4x+ Anime6B"
771
+ ],
772
+ "upscaler_for_img2img": None,
773
+ "face_restoration_model": None,
774
+ "code_former_weight": 0.5,
775
+ "face_restoration_unload": False,
776
+ "memmon_poll_rate": 8,
777
+ "samples_log_stdout": False,
778
+ "multiple_tqdm": True,
779
+ "print_hypernet_extra": False,
780
+ "unload_models_when_training": False,
781
+ "pin_memory": False,
782
+ "save_optimizer_state": False,
783
+ "save_training_settings_to_txt": True,
784
+ "dataset_filename_word_regex": "",
785
+ "dataset_filename_join_string": " ",
786
+ "training_image_repeats_per_epoch": 1,
787
+ "training_write_csv_every": 500,
788
+ "training_xattention_optimizations": False,
789
+ "training_enable_tensorboard": False,
790
+ "training_tensorboard_save_images": False,
791
+ "training_tensorboard_flush_every": 120,
792
+ "sd_model_checkpoint": default_model,
793
+ "sd_checkpoint_cache": 0,
794
+ "sd_vae_checkpoint_cache": 0,
795
+ "sd_vae": default_vae,
796
+ "sd_vae_as_default": True,
797
+ "sd_hypernetwork": "None",
798
+ "sd_hypernetwork_strength": 1.0,
799
+ "inpainting_mask_weight": 1.0,
800
+ "initial_noise_multiplier": 1.0,
801
+ "img2img_color_correction": False,
802
+ "img2img_fix_steps": False,
803
+ "img2img_background_color": "#ffffff",
804
+ "enable_quantization": False,
805
+ "enable_emphasis": True,
806
+ "enable_batch_seeds": True,
807
+ "comma_padding_backtrack": 20,
808
+ "CLIP_stop_at_last_layers": 2,
809
+ "random_artist_categories": [],
810
+ "use_old_emphasis_implementation": False,
811
+ "use_old_karras_scheduler_sigmas": False,
812
+ "use_old_hires_fix_width_height": False,
813
+ "interrogate_keep_models_in_memory": False,
814
+ "interrogate_use_builtin_artists": True,
815
+ "interrogate_return_ranks": False,
816
+ "interrogate_clip_num_beams": 1,
817
+ "interrogate_clip_min_length": 24,
818
+ "interrogate_clip_max_length": 48,
819
+ "interrogate_clip_dict_limit": 1500,
820
+ "interrogate_deepbooru_score_threshold": 0.5,
821
+ "deepbooru_sort_alpha": True,
822
+ "deepbooru_use_spaces": False,
823
+ "deepbooru_escape": True,
824
+ "deepbooru_filter_tags": "",
825
+ "return_grid": True,
826
+ "do_not_show_images": False,
827
+ "add_model_hash_to_info": True,
828
+ "add_model_name_to_info": True,
829
+ "disable_weights_auto_swap": False,
830
+ "send_seed": True,
831
+ "send_size": True,
832
+ "font": "",
833
+ "js_modal_lightbox": True,
834
+ "js_modal_lightbox_initially_zoomed": True,
835
+ "show_progress_in_title": True,
836
+ "samplers_in_dropdown": True,
837
+ "dimensions_and_batch_together": True,
838
+ "quicksettings": "sd_model_checkpoint",
839
+ "ui_reorder": "inpaint, sampler, dimensions, cfg, seed, checkboxes, hires_fix, batch, scripts",
840
+ "localization": "None",
841
+ "show_progressbar": True,
842
+ "live_previews_enable": False,
843
+ "show_progress_grid": True,
844
+ "show_progress_every_n_steps": 10,
845
+ "show_progress_type": "Approx NN",
846
+ "live_preview_content": "Prompt",
847
+ "live_preview_refresh_period": 1000,
848
+ "hide_samplers": [],
849
+ "eta_ddim": 0.0,
850
+ "eta_ancestral": 1.0,
851
+ "ddim_discretize": "uniform",
852
+ "s_churn": 0.0,
853
+ "s_tmin": 0.0,
854
+ "s_noise": 1.0,
855
+ "eta_noise_seed_delta": 0,
856
+ "always_discard_next_to_last_sigma": False,
857
+ "disabled_extensions": [],
858
+ "sd_checkpoint_hash": "b443ef60bbbaf5dc31974acc4035063716d66bbcc66e96155dbf80aba2106003",
859
+ "ldsr_steps": 100,
860
+ "ldsr_cached": False,
861
+ "SWIN_tile": 192,
862
+ "SWIN_tile_overlap": 8,
863
+ "images_history_preload": False,
864
+ "images_record_paths": True,
865
+ "images_delete_message": True,
866
+ "images_history_page_columns": 6.0,
867
+ "images_history_page_rows": 6.0,
868
+ "images_history_pages_perload": 20.0,
869
+ "show_warnings": False,
870
+ "upcast_attn": False,
871
+ "interrogate_clip_skip_categories": [],
872
+ "extra_networks_default_view": "cards",
873
+ "extra_networks_default_multiplier": 1,
874
+ "sd_lora": "None",
875
+ "lora_apply_to_outputs": False,
876
+ "keyedit_precision_attention": 0.1,
877
+ "keyedit_precision_extra": 0.05,
878
+ "ui_extra_networks_tab_reorder": "",
879
+ "postprocessing_enable_in_main_ui": [],
880
+ "postprocessing_operation_order": [],
881
+ "upscaling_max_images_in_cache": 5,
882
+ "tac_tagFile": "danbooru.csv",
883
+ "tac_active": True,
884
+ "tac_activeIn.txt2img": True,
885
+ "tac_activeIn.img2img": True,
886
+ "tac_activeIn.negativePrompts": True,
887
+ "tac_activeIn.thirdParty": True,
888
+ "tac_maxResults": 5.0,
889
+ "tac_showAllResults": False,
890
+ "tac_resultStepLength": 100.0,
891
+ "tac_delayTime": 100.0,
892
+ "tac_useWildcards": True,
893
+ "tac_useEmbeddings": True,
894
+ "tac_replaceUnderscores": True,
895
+ "tac_escapeParentheses": True,
896
+ "tac_appendComma": True,
897
+ "tac_alias.searchByAlias": True,
898
+ "tac_alias.onlyShowAlias": False,
899
+ "tac_translation.translationFile": "None",
900
+ "tac_translation.oldFormat": False,
901
+ "tac_translation.searchByTranslation": True,
902
+ "tac_extra.extraFile": "None",
903
+ "tac_extra.onlyAliasExtraFile": False,
904
+ "tac_activeIn.modelList": "",
905
+ "tac_activeIn.modelListMode": "Blacklist",
906
+ "tac_useHypernetworks": True,
907
+ "tac_useLoras": True,
908
+ "tac_showWikiLinks": False
909
+ }
910
+
911
+ with open("config.json", "w") as f:
912
+ json.dump(config, f, indent=4)
913
+
914
+ with open("ui-config.json", "w") as f:
915
+ json.dump(ui_config, f, indent=4)
916
+
917
  os.system("python launch.py --disable-console-progressbars")