https://github.com/extraltodeus/distancesampler
Heuristic modification of the Heun sampler using normalized distances.
https://github.com/extraltodeus/distancesampler
artificial-intelligence comfyui comfyui-nodes flux fluxai generative-ai pixart-sigma sd3 stable-diffusion
Last synced: about 2 months ago
JSON representation
Heuristic modification of the Heun sampler using normalized distances.
- Host: GitHub
- URL: https://github.com/extraltodeus/distancesampler
- Owner: Extraltodeus
- License: apache-2.0
- Created: 2024-08-27T07:32:07.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-02-15T00:22:11.000Z (4 months ago)
- Last Synced: 2025-04-12T14:24:01.444Z (about 2 months ago)
- Topics: artificial-intelligence, comfyui, comfyui-nodes, flux, fluxai, generative-ai, pixart-sigma, sd3, stable-diffusion
- Language: Python
- Homepage:
- Size: 72.3 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DistanceSampler
Modification of the Heun sampler using a custom function based on normalized distances. For ComfyUI.
Work better with little amounts of steps. Starting at 4, recommanded 10. CFG scale at 8.
A CFG at 1.0 with 4-8 steps can also give interesting results.
Using AYS/AYS30/Simple/Karras for the schedulers.
I recommand using the "fast" or the "s4e1" version with 10 steps [AYS30 scheduler](https://github.com/pamparamm/ComfyUI-ppm) and CFG scale at 8.
Also includes a "Heun CFG++" using the [alternative Euler CFGpp version found in ComfyUI](https://github.com/comfyanonymous/ComfyUI/blob/7df42b9a2364bae6822fbd9e9fa10cea2e319ba3/comfy_extras/nodes_advanced_samplers.py) slapped with the Heun part at the end. This may or may not be a correct implementation but the results are too good to be ignored.
The file "presets_to_add" can be easily edited to add/remove presets to the list.
The presets are about how many times it will sample per step, like start high (s) and end low (e) so "s4e1" means 4 at start, 1 at the end (1 gives Heun).