DistanceSampler

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).

Pros:

  • Less body horror / merged fused people
  • Little steps required (4-10, recommanded general use: 7 with beta or AYS)
  • Can sample simple subjects without unconditional prediction (meaning with a CFG scale at 1) with a good quality.

Cons:

  • Slow

The variation having a "n" in the name stands for "negative" and makes use of the unconditional prediction so to determin the best output. The results may vary depending on your negative prompt. In general it seems to make less mistakes.

Examples below 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

combined_side_by_side

Distance, 10 steps:

distance_10_steps

Distance n, 10 steps:

distance_n_10_steps

DPM++SDE (gpu), 14 steps:

dpmppsder_14steps

CFG scale at 1 on a normal SDXL model (works for simple subjects):

ComfyUI_00645_ComfyUI_00640_

ComfyUI_00632_

S
Description
No description provided
Readme Apache-2.0
189 KiB
Languages
Python 100%