








A custom experimental sampler based on relative distances. The first few steps are slower and then the sampler accelerates (the end is made with Heun).
The idea is to get a more precise start since this is when most of the work is being done.
Pros:
Cons:
Variations:
Thanks to Blepping there is now an ancestral version!
If any error was to relate to tensors shape, uncomment these two lines in the file “presets_to_add.py”:
extra_samplers[“Distance_fast”] = distance_wrap(resample=3,resample_end=1,cfgpp=False,sharpen=False)
extra_samplers[“Distance_fast_n”] = distance_wrap(resample=3,resample_end=1,cfgpp=False,sharpen=False,use_negative=True)
These are basically the same except they don’t use a spherical interpolation at the end. The interpolation was made with latent spaces such as those used in Stable Diffusion in mind. These two alternatives use a weighted average instead (the difference is barely noticeable from my testing).
Examples below are using the beta scheduler. The amount of steps has been adjusted to match the duration has this sampler is quite slow, yet requires little amounts of steps.
left: Distance, 7 steps
right: dpmpp2m, 20 steps
Distance, 10 steps:
Distance n, 10 steps:
DPM++SDE (gpu), 14 steps:
CFG scale at 1 on a normal SDXL model (works for simple subjects):
Distance p with a CFG at 1 and 6 steps: