-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrandomize.yml
More file actions
518 lines (428 loc) · 15.3 KB
/
randomize.yml
File metadata and controls
518 lines (428 loc) · 15.3 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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
# Note the script is brittle, no sanity checks are in place, inproper format will most likely cause errors
workflow:
workflows: xl, xl_lcm, sd1_5, sd1_5_lcm # lcm workflows needs to have '_lcm' in the string TODO poor solution, but simple
workflow_weights: [60, 30, 5, 5] # workflow weighting TODO should be 0-100?, untested
#workflow_weights: [50, 50, 50, 50]
output:
images: 10 # number of images to create
size_x_xl: 1024
size_y_xl: 1024
size_x_sd1_5: 512
size_y_sd1_5: 512
output_folder_name: randomizer
add_time_and_date_suffix: True # add to folder name
checkpoints:
# random = will choose a random checkpoint that does not have merge_chance of 0
# merge_checkpoints, 3 = will merge checkpoints based on merge chance, add max num of checkpoints to merge at the end
# default = will use default checkpoint
mode: merge_checkpoints, 2
default: xl\turbovisionxlSuperFastXLBasedOnNew_alphaV0101Bakedvae.safetensors
checkpoints:
- name: xl\thinkdiffusionxl_v10.safetensors
type: xl, xl_lcm # what types of workflows are allowed to use this model
merge_chance: 50 # chance of merging with another checkpoint, 0 never used, 100 always used
- name: xl\7Of9Joybringer_v4Joybringer.safetensors
type: xl, xl_lcm
merge_chance: 50
- name: xl\dreamshaperXL10_alpha2Xl10.safetensors
type: xl, xl_lcm
merge_chance: 50
- name: xl\gleipnir_v20FP16.safetensors
type: xl, xl_lcm
merge_chance: 50
- name: xl\hephaistosNextgenxlLCM_v10LCMBF16.safetensors
type: xl_lcm
merge_chance: 50
- name: xl\turbovisionxlSuperFastXLBasedOnNew_alphaV0101Bakedvae.safetensors
type: xl, xl_lcm
merge_chance: 50
- name: sd1.5\AnythingV5Ink_ink.safetensors
type: sd1_5, sd1_5_lcm
merge_chance: 50
- name: sd1.5\V08_V08.safetensors
type: sd1_5, sd1_5_lcm
merge_chance: 50
- name: sd1.5\aniverse_v15.safetensors
type: sd1_5, sd1_5_lcm
merge_chance: 50
- name: sd1.5\colorful_v31.safetensors
type: sd1_5, sd1_5_lcm
merge_chance: 50
- name: sd1.5\eleetModel_v20.safetensors
type: sd1_5, sd1_5_lcm
merge_chance: 50
- name: sd1.5\lyriel_v16.safetensors
type: sd1_5, sd1_5_lcm
merge_chance: 50
- name: sd1.5\perfectWorld_v6Baked.safetensors
type: sd1_5, sd1_5_lcm
merge_chance: 50
- name: sd1.5\perfectdeliberate_v5.safetensors
type: sd1_5, sd1_5_lcm
merge_chance: 50
- name: sd1.5\picxReal_10.safetensors
type: sd1_5, sd1_5_lcm
merge_chance: 50
- name: sd1.5\realisticVisionV51_v51VAE.safetensors
type: sd1_5, sd1_5_lcm
merge_chance: 50
- name: sd1.5\revAnimated_v122EOL.safetensors
type: sd1_5, sd1_5_lcm
merge_chance: 50
loras:
loras:
- name: xl\lcm\LCMTurboMix_LCM_Sampler.safetensors
type: xl_lcm # what types of workflows are allowed to use this model
chance: 100 # chance of being used, 0 never used, 100 always used
# value, 1.0 = normal float
# range, 0.5, 2.0 = range from min to max
# normal_variate_range, 1.0, 0.5, 0.5, 2.0 = like range but the first value is more common, the second value increase deviation
strength_model: value, 1.0
strength_clip: value, 1.0
- name: xl\add-detail-xl.safetensors
type: xl, xl_lcm
chance: 70
strength_model: range, 0.5, 1.5
strength_clip: range, 0.5, 1.5
- name: xl\SDXL1.0_Essenz-series-by-AI_Characters_Style_BetterPhotography-v1.2-'Skynet'.safetensors
type: xl, xl_lcm
chance: 0
strength_model: range, 0.5, 2.0
strength_clip: range, 0.5, 2.0
- name: xl\lcm\pytorch_lora_weights.safetensors
type: xl_lcm
chance: 0
strength_model: range, 0.5, 1.0
strength_clip: range, 0.5, 1.0
- name: xl\xl_more_art-full_v1.safetensors
type: xl, xl_lcm
chance: 70
strength_model: range, 0.1, 0.5
strength_clip: range, 0.1, 0.5
- name: sd1.5\Gloss_Tweaker_V2.safetensors
type: sd1_5, sd1_5_lcm
chance: 50
strength_model: range, 0.5, 1.0
strength_clip: range, 0.5, 1.0
- name: sd1.5\VisionaryVerse-SD15.safetensors
type: sd1_5, sd1_5_lcm
chance: 50
strength_model: range, 0.5, 1.0
strength_clip: range, 0.5, 1.0
- name: sd1.5\lcm\lcm-lora-sdv1-5_weights.safetensors
type: sd1_5_lcm
chance: 100
strength_model: value, 1.0
strength_clip: value, 1.0
- name: sd1.5\more_details.safetensors
type: sd1_5, sd1_5_lcm
chance: 50
strength_model: range, 0.5, 1.5
strength_clip: range, 0.5, 1.5
positive_prompt:
# TODO prompt should be one sentence for now, use random_tokens to add tokens
prompt: monkey typing on a typewriter
#prompt: cat
use_feelinglucky: False # using https://github.com/adieyal/dynamicprompts, using the lexica.art API to create random prompts
# the prompt will be used as a search string, so it should probably not be overly complicated
# Seems you get timeout from server if you use the API too frequent, I tried to inject randomeness into
# the search string, but still get timeouts
magicprompt:
use: True
device: 0 # Defines the device (*e.g.*, `"cpu"`, `"cuda:1"`, `"mps"`, or a GPU ordinal rank like `1`) on which the model should be loaded.
model: Gustavosta/MagicPrompt-Stable-Diffusion # https://github.com/adieyal/sd-dynamic-prompts/blob/main/config/magicprompt_models.txt
random_token_chance: 0 # chance 0-100 per token to be added to prompt
random_tokens: >
highly detailed, soft skin, soft lighting, photorealistic, expressive, high resolution, digitally enhanced, 8k, studio lighting,
high contrast, chiaroscuro lighting technique, high quality, cinematic, 200mm 1.4f macro shot, halation, morning sunlight,
smooth light, shot on kodak portra 200, professional photo, surreal, dreamy, Vogue fashion photography, angled shot, midday warm,
Nikon D850 105mm, Chiaroscuro, Volumetric lighting, Realistic, By Steve Henderson, by Anna Rose Bain, by Emerico Emre Toth,
by Guillaume Seignac
# off
# replace_questionmark = eg (masterpiece:?) -> (masterpiece:1.2) TODO will probably work poorly
# all = eg "masterpiece" -> "(masterpiece:1.2)" # will probably work poorly if tokens already weighted, not tested yet
token_weighting_mode: all
# value = normal float
# range, 0.1, 2.0 = range from min to max
# normal_variate_range, 1.0, 0.5, 0.1, 2.0 = like range but the first value is more common, the second value increase deviation
primary_prompt_weight_values: range, 1.0, 2.0 # higher value = higher chance of getting what you prompted for
token_weighting_values: range, 0.1, 1.5
negative_prompt:
prompt: worst quality, low quality, normal quality
random_token_chance: 10 # chance 0-100 per token to be added to prompt
random_tokens: >
ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation,
deformed, blurry, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, out of frame, ugly, extra limbs, bad anatomy,
gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, mutated hands, fused fingers,
too many fingers, long neck, blurry, depth of field, nsfw
token_weighting_mode: all
token_weighting_values: range, 0.1, 1.5
embeddings:
- name: xl\pos\ziprealism.safetensors
type: xl, xl_lcm # what types of workflows are allowed to use this model
chance: 50 # chance of being used, 0 never used, 100 always used
alignment: positive # [positive, negative, both]
# value = normal float
# range, 0.1, 2.0 = range from min to max
# normal_variate_range, 1.0, 0.5, 0.1, 2.0 = like range but the first value is more common, the second value increase deviation
values: range, 0.1, 1.5
- name: xl\neg\ac_neg1.safetensors
type: xl, xl_lcm
chance: 50
alignment: negative
values: range, 0.1, 1.5
- name: xl\neg\ac_neg2.safetensors
type: xl, xl_lcm
chance: 50
alignment: negative
values: range, 0.1, 1.5
- name: xl\neg\zip2d_neg.safetensors
type: xl, xl_lcm
chance: 50
alignment: negative
values: range, 0.1, 1.5
- name: xl\pos\SK_3DRENDER.safetensors
type: xl, xl_lcm
chance: 50
alignment: positive
values: range, 0.1, 1.5
- name: xl\pos\SK_ANALOGFILM.safetensors
type: xl, xl_lcm
chance: 0
alignment: positive
values: range, 0.1, 1.5
- name: xl\pos\SK_ANIME.safetensors
type: xl, xl_lcm
chance: 50
alignment: positive
values: range, 0.1, 1.5
- name: xl\pos\SK_CINEMATIC.safetensors
type: xl, xl_lcm
chance: 50
alignment: positive
values: range, 0.1, 1.5
- name: xl\pos\SK_COMIC.safetensors
type: xl, xl_lcm
chance: 50
alignment: positive
values: range, 0.1, 1.5
- name: xl\pos\SK_Cyberpunk.safetensors
type: xl, xl_lcm
chance: 50
alignment: positive
values: range, 0.1, 1.5
- name: xl\pos\SK_DIGITALART.safetensors
type: xl, xl_lcm
chance: 50
alignment: positive
values: range, 0.1, 1.5
- name: xl\pos\SK_Fantasy.safetensors
type: xl, xl_lcm
chance: 50
alignment: positive
values: range, 0.1, 1.5
- name: xl\pos\SK_Ghibli.safetensors
type: xl, xl_lcm
chance: 50
alignment: positive
values: range, 0.1, 1.5
- name: xl\pos\SK_VECTORART.safetensors
type: xl, xl_lcm
chance: 50
alignment: positive
values: range, 0.1, 0.5
- name: xl\pos\ZIP2D.safetensors
type: xl, xl_lcm
chance: 50
alignment: positive
values: range, 0.1, 1.5
- name: sd1.5\neg\BadDream.pt
type: sd1_5, sd1_5_lcm
chance: 50
alignment: negative
values: range, 0.1, 1.5
- name: sd1.5\neg\EasyNegativeV2.safetensors
type: sd1_5, sd1_5_lcm
chance: 50
alignment: negative
values: range, 0.1, 1.5
- name: sd1.5\neg\Unspeakable-Horrors-Composition-4v.pt
type: sd1_5, sd1_5_lcm
chance: 50
alignment: negative
values: range, 0.1, 1.5
- name: sd1.5\neg\badhandv4.pt
type: sd1_5, sd1_5_lcm
chance: 50
alignment: negative
values: range, 0.1, 1.5
- name: sd1.5\neg\epiCPhoto-neg.pt
type: sd1_5, sd1_5_lcm
chance: 50
alignment: negative
values: range, 0.1, 1.5
- name: sd1.5\pos\epiCPhoto.pt
type: sd1_5, sd1_5_lcm
chance: 50
alignment: positive
values: range, 0.1, 1.5
# standard, 1.3, 1.4, 0.9, 0.2, 0.5 # b1, b2, s1, s2, off_chance # 1 always off, 0 always on
# range, 0.5, 3.0, 0.5, 3.0, 0.2, 2.0, 0.1, 0.2, 0.5 # [min, max] for b1, b2, s1, s2 and then off_chance
# normal_variate_range, 1.3, 0.5, 0.5, 3.0, 1.4, 0.7, 0.5, 3.0, 0.9, 0.4, 0.2, 2.0, 0.2, 0.1, 0.1, 0.2, 0.5
# [mu, sigma, min, max] and then off_chance mu: will lean towards this number, sigma: higher number, higher deviation
# TODO the format looks awful
freeu:
values: range, 0.6, 1.3, 0.7, 1.4, 0.4, 0.9, 0.1, 0.2, 0.5
#dynamic_thresholding: # https://github.com/mcmonkeyprojects/sd-dynamic-thresholding
# chance: 0 # 0 off, 100 always on
# mimic_scale: range, 1, 100
# threshold_percentile: range, 0.1, 1.0
automaticcfg: # https://github.com/Extraltodeus/ComfyUI-AutomaticCFG
# really good results from this one
chance: 100 # 0 off, 100 always on
# if the value is -1 the node will not be used
# value, -2
# range, -10, -1 # min to max
# normal_variate_range, -2, 0.5, -1, -10 [mu, sigma, min, max] mu: will lean towards this number, sigma: higher number, higher deviation
clipsetlastlayer:
values: range, -5, -1
# shapes and gradients
# TODO most settings will be set to random in the script due to the large amounts of settings, might change in the future
#shapes:
# blend_with_shape: True
# chance: 50
# mode_weights: [50, 50, 10, 10, 50] # CR Draw Shape, CR Random Shape Pattern, CR Color Gradient, CR Radial Gradient, Shape from K-sampler
# denoise: range, 0.4, 0.9 # used by the k-sampler after blending the latents, will override normal denoise settings below
# ksampler
# 1 = seed
# random = random seed
seed:
values: random
# value, 20
# range, 10, 30
# normal_variate_range, 15, 7, 10, 30 [mu, sigma, min, max] mu: will lean towards this number, sigma: higher number, higher deviation
steps:
values: range, 18, 30
# value, 1
# range, 2, 4
# normal_variate_range, 7, 3, 2, 10 [mu, sigma, min, max] mu: will lean towards this number, sigma: higher number, higher deviation
cfg:
values: range, 1.5, 10 # 1.5, 6
# value, 1
# range, 0.8, 1
# normal_variate_range, 1, 0.5, 0.8, 1 [mu, sigma, min, max] mu: will lean towards this number, sigma: higher number, higher deviation
denoise:
values: value, 1
sampler: # lcm workflow will always use lcm
mode: random # random, default
default_sampler: euler
lcm_sampler: # will always override steps and cfg settings
steps: range, 15, 30
cfg: range, 2, 4 #2,5
samplers:
- name: euler
weight: 50 # larger number = higher chance of being choosen
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: euler_ancestral
weight: 50
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: heun
weight: 50
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: heunpp2
weight: 50
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: dpm_adaptive
weight: 0
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: dpm_2
weight: 50
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: dpmpp_2s_ancestral
weight: 50
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: dpm_2_ancestral
weight: 50
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: ddpm
weight: 50
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: uni_pc
weight: 50
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: dpmpp_sde
weight: 50
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: uni_pc_bh2
weight: 50
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: dpmpp_sde_gpu
weight: 50
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: ddim
weight: 50
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: dpmpp_2m
weight: 50
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: dpmpp_2m_sde
weight: 50
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: dpmpp_2m_sde_gpu
weight: 50
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: dpm_fast
weight: 0
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: lms
weight: 0
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
- name: dpmpp_3m_sde_gpu
weight: 50
override_steps_and_cfg: False
steps: range, 18, 30
cfg: range, 2, 7
# random
# scheduler name eg 'karras'
scheduler:
values: random
schedulers: ["karras", "exponential"]
# removed "normal", "ddim_uniform", "sgm_uniform", "simple"