-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpresets_to_add.py
28 lines (19 loc) · 1.31 KB
/
presets_to_add.py
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
from .custom_samplers import distance_wrap
extra_samplers = {}
"""
To add a sampler to the list of samplers you can do it this way (outside of this comment):
extra_samplers["the_name_that_you_want"] = distance_wrap(resample=3,resample_end=-1,cfgpp=False)
"resample" is the starting value, how many more inferences it will use. More is slower.
For resample_end "-1" means constant.
Constant resample at 0 gives Euler, 1 gives Heun.
cfgpp will determin if you want it or not. True or False.
"""
extra_samplers["distance_fast"] = distance_wrap(resample=3,resample_end=1,cfgpp=False) # s3e1
extra_samplers["distance_s4e1"] = distance_wrap(resample=4,resample_end=1,cfgpp=False)
# extra_samplers["distance_step1"] = distance_wrap(resample=-1,resample_end=1,cfgpp=False)
# extra_samplers["distance_step0"] = distance_wrap(resample=-1,resample_end=1,cfgpp=False)
extra_samplers["distance_fast_cfg_pp"] = distance_wrap(resample=3,resample_end=1,cfgpp=True)
extra_samplers["distance_s4e1_cfg_pp"] = distance_wrap(resample=4,resample_end=1,cfgpp=True)
# extra_samplers["distance_c2_cfg_pp"] = distance_wrap(resample=2,resample_end=-1,cfgpp=True)
# extra_samplers["distance_step_cfg_pp"] = distance_wrap(resample=-1,resample_end=1,cfgpp=True)
extra_samplers["heun_cfg_pp"] = distance_wrap(resample=1,cfgpp=True)