feat(samplers): group sampler dropdown into labeled sections

Reorder samplers_data_diffusers into recognizable solver-family groups (Euler, DPM/DPM++, UniPC/DEIS, Heun/KDPM2, ER-SDE, Classic, Distilled, Misc), each ending with its FlowMatch variants, and Res4Lyf as a fenced experimental section, so the dropdown is scannable.

Dividers are SamplerData sentinels with U+2500 names: create_sampler keeps the current scheduler when one is selected, get_sampler_name falls back to Default, set_samplers and validate_sampler_name exclude them, and a visible_samplers() helper drops them from the xyz axes, detailer, and folder pickers. The main and refine dropdowns render them as section labels. No sampler is removed or renamed, so saved infotexts, styles, and API calls keep resolving.
This commit is contained in:
CalamitousFelicitousness
2026-06-14 01:41:05 +01:00
parent 099b4e4214
commit e804d6df21
7 changed files with 78 additions and 31 deletions
+2
View File
@@ -162,6 +162,8 @@ def get_sampler_name(sampler_index: int | None = None, img: bool = False) -> str
else:
sampler_name = "Default"
log.warning(f'Sampler not found: index={sampler_index} available={[s.name for s in sd_samplers.samplers]} fallback={sampler_name}')
if sd_samplers.is_separator(sampler_name): # divider row selected, treat as Default
sampler_name = "Default"
if img and sampler_name == "PLMS":
sampler_name = "Default"
log.warning(f'Sampler not compatible: name=PLMS fallback={sampler_name}')