Commit Graph

13642 Commits

Author SHA1 Message Date
Vladimir Mandic e53c8ef1da bump transformers and diffusers
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-10 08:30:44 +02:00
Vladimir Mandic ee3a466ad9 patch getexif
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-10 08:20:25 +02:00
Vladimir Mandic 72b2f0d7be bump compel
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-10 08:09:00 +02:00
Vladimir Mandic f4a03d4510 Merge pull request #4900 from vladmandic/fix/sampler-fallback-paths
Fix/sampler fallback paths
2026-06-10 07:24:12 +02:00
CalamitousFelicitousness a3407efa81 test: add sampler differential API tester
Drives txt2img/img2img with the full per-sampler scheduler-option matrix
(sigma method, prediction type, timestep spacing, beta schedule, solver
order, shift, low order, thresholding, dynamic shift, rescale betas), one
option at a time over a pinned baseline, and measures every case against
the default: applied, inert, marginal, rejected, or fallback. Detects
silent fallback via the infotext Scheduler class and annotates every saved
image with its full requested configuration. --sweep runs a reduced matrix
per sampler and emits an empirical capability report.
2026-06-10 03:08:20 +01:00
CalamitousFelicitousness 47aa9a2c93 fix(samplers): report validation failures without backtrace
Sampler capability gates raised plain ValueError when schedulers_fallback is
disabled, so the API middleware and the gradio call wrapper printed a full
backtrace for an expected outcome. Add errors.ValidationError, raise it from
the gates, and report it message-only in errors.display; the UI error box and
the API error response already carry the message.
2026-06-10 03:08:20 +01:00
CalamitousFelicitousness 1d5fbc60e5 feat(samplers): wire sigma transforms into ER-SDE FlowMatch presets
The ER-SDE FlowMatch presets carried only use_flow_sigmas, so the sigma
method selector could not drive karras/beta/exponential for the FlowMatch
variants. Add use_karras_sigmas/use_exponential_sigmas/use_beta_sigmas to
match the plain ER-SDE presets and the Euler/UniPC/Flash FlowMatch presets,
which use the same boolean-flag mechanism.
2026-06-10 03:08:20 +01: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
CalamitousFelicitousness 40cf818f72 feat(samplers): apply sigma transforms to ER-SDE flow sigmas
In flow mode ER-SDE only ran karras/beta/exponential on the VP path and
silently dropped them, unlike FlowMatchEuler and DPM FlowMatch which
redistribute the shifted flow sigmas. Apply the same transform to the
flow sigmas in _setup_flow so the sigma method works in flow mode and
the ER-SDE FlowMatch variants gain karras/beta/exponential. Default flow
schedule is unchanged.
2026-06-10 03:08:20 +01:00
CalamitousFelicitousness 7084ac2c81 fix(samplers): warn or raise when sampler lacks selected sigma method
The sigma-method override silently fell back to the sampler's default
schedule when the selected method has no matching config key. Now warns and
uses the default schedule with schedulers_fallback enabled, or raises like
the other capability gates when it is disabled.
2026-06-10 03:08:20 +01:00
CalamitousFelicitousness f59e32ff17 feat(samplers): add sigma-schedule parity to ER-SDE
ERSDEScheduler now accepts use_karras_sigmas, use_exponential_sigmas,
use_beta_sigmas, and use_flow_sigmas, matching the other flow schedulers.
The VP path derives alpha/sigma/lambda from the k-diffusion sigma so the
karras/beta/exponential transforms can use fractional timesteps; the
default schedule is numerically unchanged. use_flow_sigmas triggers flow
mode and add_noise tolerates fractional timesteps.

Wire the new keys into the ER-SDE presets so the sigma method selector
drives them, and cover ER-SDE in the scheduler stability test.
2026-06-10 03:08:20 +01:00
Disty0 d1ed1f7c93 SDNQ add Ideogram4Transformer2DModel keys 2026-06-10 03:20:57 +03:00
Vladimir Mandic deaff7f16e update changelog
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-09 19:37:02 +02:00
Vladimir Mandic efe9a1f348 two-way image resize ui/kanvas
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-09 19:33:44 +02:00
Vladimir Mandic 2313da729e Merge pull request #4899 from liutyi/dev
Ideogram 4 reference image
2026-06-08 23:03:01 +02:00
Vladimir Mandic af0ccf1b63 add ideogram prequant and set default schedule
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-08 17:20:12 +02:00
Vladimir Mandic 84228f1657 update sampler behavior and user definable fallback
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-08 17:00:00 +02:00
Oleksandr Liutyi ac8734dcb2 Ideogram 4 reference image 2026-06-08 13:34:49 +00:00
Vladimir Mandic 8a85178f93 logical-vs-physical param count
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-08 12:03:37 +02:00
Vladimir Mandic d710b7d766 fix ideogram tokens device placement
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-08 10:21:48 +02:00
Vladimir Mandic f27c8584ee fix xpu generator
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-08 10:18:12 +02:00
Vladimir Mandic fefa1f210d fix sdnq svd
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-08 10:12:17 +02:00
Vladimir Mandic 98195a16b9 schedulers remove false positives
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-08 09:14:48 +02:00
Vladimir Mandic 191bd93011 implement missing params in some schedulers
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-08 09:08:07 +02:00
Vladimir Mandic cad27637b4 schedulers validate ui sections
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-08 08:58:13 +02:00
Vladimir Mandic 0834ea41e9 update skills
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-08 08:35:47 +02:00
Vladimir Mandic 3859530214 refactor for consistent folders usage for all models
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-08 08:24:21 +02:00
Vladimir Mandic 4b64c1111e add ideogram pre-quant
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-08 08:17:46 +02:00
CalamitousFelicitousness 28c66c9812 fix(samplers): apply flow shift to non-flowmatch ER-SDE presets 2026-06-07 22:08:16 +01:00
Disty0 03fa90ff35 Add warning for and skip post-load quant of pre-quants 2026-06-07 18:02:28 +03:00
Disty0 f0c93defb8 SDNQ add RuntimeError for post-load quantizing a pre-quant 2026-06-07 17:51:48 +03:00
Disty0 809f24aa13 Remove unset_config_on_save 2026-06-07 17:28:17 +03:00
Disty0 1247f871d3 SDNQ fix quantization_config being lost on pre-quants 2026-06-07 17:02:08 +03:00
Disty0 e5249c7a4b Cleanup SDNQ 2026-06-07 16:14:52 +03:00
Vladimir Mandic 1f24513507 optimize sdnq quant-on-load and add platform stats
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-07 11:43:46 +02:00
Vladimir Mandic 2c878cff15 Merge pull request #4897 from vladmandic/fix/api-sampler-resolution
Fix/api sampler resolution
2026-06-07 10:00:40 +02:00
CalamitousFelicitousness 08b843401e fix(ui): correct schedulers_sigma option choices to match backend
schedulers_sigma is a hidden OptionInfo registration; the visible control is the sampler-accordion dropdown. Its choices still listed the k-diffusion set, including polyexponential (which the diffusers backend does not support) and omitting betas, lambdas, and flowmatch. Align the list with what sd_samplers_diffusers accepts and the dropdown offers. The list feeds warn-only validation, so this clears a dead value and spurious debug logs, not user-facing behavior.
2026-06-07 07:35:56 +01:00
CalamitousFelicitousness 72b6691fd6 fix(api): default img2img sampler_name to Default like txt2img
img2img still defaulted sampler_name to UniPC after the txt2img default was switched to Default in 7fbac675f, so an img2img request that omits the sampler forced UniPC instead of keeping the model's own scheduler. The control endpoint already used Default; align img2img with both.
2026-06-07 06:57:07 +01:00
CalamitousFelicitousness 0c0d455c11 fix(api): resolve sampler names case-insensitively to canonical form
validate_sampler_name only matched the exact, case-sensitive name, so near-miss client names such as lowercase variants were rejected while an omitted name silently used the model scheduler via the Default sentinel. Fall back to find_sampler and return the canonical name so create_sampler applies the intended sampler; unknown names still return 404. Add an API test covering case-insensitive resolution and rejection of unknown names.
2026-06-07 06:57:07 +01:00
CalamitousFelicitousness 338cbbfb28 chore: bump wiki submodule pointer 2026-06-07 05:55:07 +01:00
CalamitousFelicitousness f669283fed fix(ui): apply hints to radio and checkboxgroup titles
Gradio renders radio and checkboxgroup titles as a bare block-info span
outside any label, so the hint scan missed them and those titles never
received a tooltip or localization. Add the block-info selector to the
element scan, deduplicating against the nodes already collected.

Rebuild the core bundle.
2026-06-07 05:50:28 +01:00
CalamitousFelicitousness 7990a8b4f2 docs(i18n): add hint for model types not to quantize
Document the space or comma separated model-type list that quantization
skips, with the family codes shown in the load log and an example.
Mark it as requiring a model reload, matching the other quantization
settings, since the value is read only during model load.
2026-06-07 05:49:59 +01:00
CalamitousFelicitousness f420138c07 docs(i18n): flag offload always/never lists as needing model reload
They also take effect on a watermark change, not only on model reload,
but the loophole is not worth documenting in the hint.
2026-06-07 05:11:48 +01:00
CalamitousFelicitousness 38a5990c54 docs(i18n): flag quant and offload settings that need model reload or server restart 2026-06-07 04:39:34 +01:00
CalamitousFelicitousness 7297693cef fix(i18n): point localize script at test/localize.mjs 2026-06-07 03:37:51 +01:00
CalamitousFelicitousness 91a4e9cef4 docs(i18n): add hints for model offloading settings 2026-06-07 02:57:00 +01:00
CalamitousFelicitousness 5105e0ad87 docs(i18n): add hints for SDNQ quantization settings 2026-06-07 02:57:00 +01:00
CalamitousFelicitousness c4d8576063 docs(ideogram4): clarify prompt handling in reference description
Requires structured JSON-caption prompts; prompt-enhance (on by default)
rewrites a plain prompt into one.
2026-06-07 00:37:21 +01:00
CalamitousFelicitousness 8c305fd68c refactor(processing): drop dead model-level keep_prompts check
Nothing sets keep_prompts on the model, so the guard never affected behavior.
JSON-caption prompts are preserved by the JSON short-circuit in
apply_curly_braces_to_prompt; the per-process p.keep_prompts path
(detailer, mixture-of-diffusers) is unchanged.
2026-06-07 00:37:15 +01:00
CalamitousFelicitousness 5257b5cba9 fix(ideogram4): scope qwen3-vl forward patch to the enhance window
The prompt-enhancer grafts an lm_head onto the shared Qwen3-VL body, so its
forward needs a device guard the stock forward lacks. Applying that patch
globally at load left it active for the whole process, including unrelated
Qwen3-VL users such as the VQA captioner.

Apply the hijack around the enhancer generate call and restore the stock
forward in a finally, so the patch affects only the ideogram enhancer.
2026-06-07 00:30:45 +01:00