99 Commits

Author SHA1 Message Date
CalamitousFelicitousness e804d6df21 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.
2026-06-14 01:41:05 +01:00
QualiaRain 0002062367 Fix inverted lerp weights in slerp_alt near-parallel shortcut
Same inversion as the slerp() near-parallel shortcut: at val=0 the
expression returned hi instead of lo, opposite to both the
near-orthogonal shortcut and the general slerp path in the same
function.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-12 02:28:42 -04:00
Claude ace616d287 Fix inverted lerp weights in slerp near-parallel shortcut
The nearly-parallel fast path interpolated in the wrong direction:
at val=0 it returned hi instead of lo, opposite to both the general
slerp formula below and the sibling near-orthogonal shortcut. Affects
subseed/variation strength when base and subseed noise are nearly
parallel.

https: //claude.ai/code/session_014QWKWgKvMevcuvfCnsYoT2
Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-12 02:27:51 -04:00
Claude 26a58b46fb Fix seed 0 being dropped from generator seeds
The truthiness filter removed valid seed 0 from p.seeds, causing an
unseeded generator for single images and a generator/batch length
mismatch for batches. Filter only None entries; 0 is a legitimate seed
per get_fixed_seed.

https: //claude.ai/code/session_014QWKWgKvMevcuvfCnsYoT2
Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-12 02:27:51 -04:00
Claude e7d7e699e1 Fix latent concatenation running inside the loop in resize_hires
torch.cat was indented into the per-item loop, so with two or more
latents the first iteration replaced the list with a tensor and the
next iteration concatenated its dim-0 slices, destroying the batch
dimension. Concatenate once after the loop.

https: //claude.ai/code/session_014QWKWgKvMevcuvfCnsYoT2
Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-12 02:27:50 -04:00
CalamitousFelicitousness e783981f3d fix(samplers): honor fallback setting in remaining sampler fallback paths
create_sampler restored the model default scheduler on a prediction-type
mismatch, on an unknown sampler config, and on any scheduler-constructor
exception regardless of schedulers_fallback; only SD_SAMPLER_DEBUG could turn
the prediction mismatch into an error. Raise like the other capability gates
when the fallback setting is disabled.

An unresolved sampler name substituted UniPC before any of those gates could
run; pass the requested name through instead, so it falls back to the model
default (or raises when fallback is disabled) and the infotext records
Default rather than the unresolved name. find_sampler now also resolves an
unspecified sampler to Default instead of UniPC, matching the platform
default used everywhere else.
2026-06-10 03:08:20 +01:00
Vladimir Mandic f27c8584ee fix xpu generator
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-08 10:18:12 +02:00
CalamitousFelicitousness ae0cb1600c fix(save): handle already-decoded images in save_intermediate 2026-04-30 03:42:11 +01:00
awsr c003b0eb48 PIL Image.Image type fix 2026-04-06 01:06:19 -07:00
awsr fb853af4b0 RUF013 updates 2026-03-24 04:58:19 -07:00
vladmandic e0faa149dd cleanup
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-13 14:44:58 +01:00
vladmandic 928448b654 merge: modules/processing_helpers.py 2026-03-13 14:27:59 +01:00
Vladimir Mandic e5c494f999 cleanup logger 2026-02-19 11:09:13 +01:00
Vladimir Mandic a3074baf8b unified logger 2026-02-19 09:46:42 +01:00
Vladimir Mandic 6fdd3a53cf reduce mandatory requirements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-02-18 17:53:08 +01:00
Vladimir Mandic d6bbfe3dc2 experimental python==3.14 support
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-02-17 22:08:36 +01:00
vladmandic b8bac68915 use base steps as-is for non sd/sdxl models
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-23 10:12:11 +01:00
vladmandic 01db4d8140 use refiner/detail steps as-is for non sd/sdxl models
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-22 19:50:16 +01:00
vladmandic a7b69cd805 fix get_fixed_seed
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-20 18:33:39 +01:00
vladmandic bb1e62f2ae fix_seed
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-20 18:32:19 +01:00
vladmandic ae357a5e49 fix handling of p.seeds
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-19 11:35:21 +01:00
vladmandic e8a158f4f5 refactor prompt set
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-19 10:51:28 +01:00
vladmandic 899514c5b8 lint update
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-08 08:51:35 +01:00
vladmandic 7f9cc66045 fix decode-image exception
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-05 20:07:33 +01:00
vladmandic a846a90fca exception handler
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-05 19:27:37 +01:00
vladmandic e7e2063f67 fix image sizing
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-05 15:10:53 +01:00
vladmandic 72b533a52a cleanup layered again
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-22 22:52:56 +01:00
vladmandic 6d9555fc3c cleanup
Signed-off-by: vladmandic <mandic00@live.com>
2025-11-26 10:52:37 -05:00
vladmandic ad6458aa7b add flux2
Signed-off-by: vladmandic <mandic00@live.com>
2025-11-26 15:47:17 +00:00
Vladimir Mandic 93bdca0670 fix image str decode and update requirements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-29 10:56:03 -04:00
Vladimir Mandic 91dab5703a modular pipeline prototype
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-24 11:40:20 -04:00
Vladimir Mandic cc6101ecb2 jumbo update: add wan22-vace, improve offloading, add offloading-using-streams, change logging-levels, refactor some default packages
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-17 12:32:30 -04:00
Vladimir Mandic 0f7d2e95ca fix state interrupted checks
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-14 13:03:03 -04:00
Vladimir Mandic 175e9cbe29 cleanup/refactor state history
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-12 16:12:45 -04:00
Vladimir Mandic 8f151b7e17 add qwen-image-edit
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-18 16:13:59 -04:00
Vladimir Mandic 338129b7c1 calculate vae-scale-factor and use everywhere
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-09 11:31:13 -04:00
Vladimir Mandic f53ee29366 infotext apply styles and fix progress bar
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-30 12:02:47 -04:00
Vladimir Mandic 251c919c51 auto-handle sampler flow detection
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-14 22:07:39 -04:00
Vladimir Mandic e8b5ea3847 major refactor: remove backend original
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-05 13:16:46 -04:00
Vladimir Mandic 9b38a5dc58 add kontext inpainting
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-02 08:14:47 -04:00
Vladimir Mandic 7fbac675fe api update default sampler
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-06-28 09:36:33 -04:00
Vladimir Mandic 15cbffeb97 cleanup
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-06-27 09:52:31 -04:00
Vladimir Mandic 1147f9ec56 add flux.1-kontext-dev
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-06-26 17:09:53 -04:00
Vladimir Mandic 2714d29993 fix unapply texture tiling
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-06-26 09:30:15 -04:00
Vladimir Mandic 4de160608e fix prompt parser with batch size
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-06-26 07:47:03 -04:00
Vladimir Mandic a5d784f073 fix delete file from main gallery view
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-06-25 10:30:59 -04:00
Vladimir Mandic af3a44ccbe optional skimage
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-05-24 08:58:04 +02:00
Vladimir Mandic 02fd0aee06 fix control refiner
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-05-06 09:06:50 -04:00
Vladimir Mandic 5971f67e4f fix cn steps
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-05-04 15:04:20 -04:00
Vladimir Mandic 25470e5524 fix sdxl-refiner workflow
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-05-04 12:12:09 -04:00