Commit Graph

8520 Commits

Author SHA1 Message Date
vladmandic 15c8b2b0c4 fixes from check-api
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-12 18:54:22 +02:00
vladmandic b9a38b5955 ai-agents
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-12 18:54:22 +02:00
CalamitousFelicitousness 79d2f71e87 fix sd_checkpoint.list_models leaving stale sd_models.checkpoints_list reference
list_models() ended with `checkpoints_list = dict(sorted(...))`, which rebound
the module-level name to a fresh dict object. sd_models.py line 18 does
`from modules.sd_checkpoint import ... checkpoints_list`, capturing a reference
to the original dict at import time. Every subsequent list_models() call
cleared and refilled the sd_checkpoint binding but left the sd_models binding
frozen at the state it had after the first call. ui_extra_networks_checkpoints,
ui_models, extras, xyz_grid_classes, and sd-extension-system-info all read
through sd_models.checkpoints_list, so none of them could see models added
after startup without a full restart.

Sort in place instead, preserving dict identity so every importer stays in
sync with sd_checkpoint.checkpoints_list.
2026-04-11 22:27:39 +01:00
CalamitousFelicitousness cfdce99957 fix ER-SDE flow-matching parameterization using alpha=1
The VP update formula uses lambda=sigma/alpha which blows up to ~1e8
for flow matching (where alpha=1-sigma approaches 0). This makes
r_fn=fn(next)/fn(curr) collapse to ~0, causing the sampler to discard
the previous sample and independently re-predict x0 at each step.

Set alpha=1 and lambda=sigma for flow matching so the VP formula
naturally reduces to the correct form r_f*x + (1-r_f)*x0 with
lambda in [0,1] where the noise function produces meaningful ratios.
2026-04-11 16:31:32 +01:00
CalamitousFelicitousness 3f5059f310 fix sign-destroying clamp in ER-SDE higher-order corrections
The 2nd/3rd order derivative denominators (lambda_curr - prev_lambda)
are always negative since lambda decreases during denoising.
The .clamp(min=1e-10) forced these to a tiny positive value, causing
d_x0 to explode by ~1e18 and producing NaN output.

- Add _safe_div helper that returns zero for near-zero denominators
  while preserving the sign for normal values
- Replace .clamp(min=1e-10) with _safe_div in both 2nd and 3rd order
2026-04-11 16:31:32 +01:00
CalamitousFelicitousness 0b0382375a fix flow-matching schedule computed internally when no sigmas provided 2026-04-11 16:31:32 +01:00
CalamitousFelicitousness 153a5febde fix sigmas always populated after set_timesteps 2026-04-11 16:31:32 +01:00
CalamitousFelicitousness 4d347049eb add ER-SDE solver scheduler 2026-04-11 16:31:32 +01:00
Disty0 a16ff95f18 SDNQ add nn.Embedding quantization support and add Gemma4 keys 2026-04-10 18:46:58 +03:00
vladmandic 14ba5e4ce7 update nudenet
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-09 13:48:54 +02:00
CalamitousFelicitousness f1d2888f10 fix(lora): case-insensitive stage detection for two-stage LoRA names 2026-04-09 09:11:51 +01:00
CalamitousFelicitousness 0e5d351099 add google gemma-4-e2b and gemma-4-e4b support
- add to prompt enhance models, img2img, and models_cls
- add to vlm/caption models
- update _load_gemma class selection for gemma 4
- bump transformers pin to 5.5.0.dev for gemma4 architecture support
2026-04-09 03:21:50 +01:00
CalamitousFelicitousness 3195bd6287 feat(autocomplete): move settings to always-on script UI
- create scripts/autocomplete.py as always-on script with dictionary
  management UI (dropdown, refresh, update, settings controls)
- move autocomplete settings from Settings > Extra Networks to hidden
  options, controlled via script UI with JS config bridge
- remove early exit in autocomplete.js when no dictionaries enabled,
  allowing dictionaries enabled via script UI to work without reload
- add id-based suffix matching to setHints.js for unique button hints
- add locale_en.json entries with tooltips for all autocomplete controls
2026-04-09 02:00:45 +01:00
vladmandic 7280926b22 disable hidream parser
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-08 22:46:31 +02:00
vladmandic 900acc9cc6 fix relpath
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-08 11:00:32 +02:00
Vladimir Mandic aa34db2c50 Merge branch 'dev' into feat/tag-dictionaries 2026-04-08 10:03:42 +02:00
vladmandic 44cb2f6f9c improve path_to_repo
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-08 09:47:06 +02:00
vladmandic a8e535efe2 enhanced filename pattern processing
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-08 08:32:32 +02:00
vladmandic bfc018fed4 update changelog
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-07 15:24:42 +02:00
awsr c003b0eb48 PIL Image.Image type fix 2026-04-06 01:06:19 -07:00
vladmandic a07e9cc7e1 hijack hf download
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-06 09:19:43 +02:00
vladmandic 4c5454d54a improve select_from_weighted_list
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-06 07:57:04 +02:00
vladmandic df50c4c969 fix prompt weighted lists
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-05 21:29:18 +02:00
vladmandic 155dabc840 cleanup
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-04 11:09:39 +02:00
vladmandic 2fcabc8047 fix upscaler init causing server fail
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-04 11:03:34 +02:00
Disty0 b2e071dc52 cleanup 2026-04-04 01:39:26 +03:00
Disty0 470a0d816e SDNQ add tensor descriptor kernel to triton mm for Intel Arc 2026-04-04 01:32:34 +03:00
Disty0 ffeda702c5 Set default openvino_accuracy to no hint 2026-04-03 23:50:45 +03:00
vladmandic 9d0ecde462 add sdxs
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-02 20:15:30 +02:00
Vladimir Mandic 999cbe5d3a Merge branch 'dev' into various1 2026-04-02 08:36:24 +02:00
vladmandic 1310264d43 regen all localizations
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-01 10:29:08 +02:00
vladmandic 61c10d6591 update diffusers and transformers
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-31 16:34:28 +02:00
awsr 3dd09fde08 Syntax change 2026-03-30 20:09:02 -07:00
vladmandic ec1341348b update todo/changelog
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-30 12:19:36 +02:00
vladmandic ca2d49497b ltx test
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-30 11:16:55 +02:00
vladmandic a370bfc987 handle taesd init failures
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-30 10:24:26 +02:00
vladmandic 849ab8fe1e fix loader
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-30 09:58:42 +02:00
awsr 59b9ca50ee Guard against divide by zero and out-of-bounds 2026-03-29 01:25:22 -07:00
awsr eeb9b6291b Update typing + enforce variable not unbound + import sort 2026-03-28 19:27:45 -07:00
awsr 8d6ec348b2 Refactor get_grid_size
Type safe, avoids redefining parameter types, and the static type checker is able to parse it easily.
2026-03-28 19:18:55 -07:00
awsr a1b03a383c Upgrade Grid to typed NamedTuple 2026-03-28 19:17:59 -07:00
awsr ba362ad3ca Type safety 2026-03-28 17:32:23 -07:00
awsr 7f07d4cb31 Update to match actual code logic 2026-03-28 17:31:37 -07:00
awsr 715b1b0699 More typing updates 2026-03-28 17:30:06 -07:00
awsr b2b6fdf9d5 Typing updates 2026-03-28 17:15:48 -07:00
awsr 8ef8074467 Upgrade to typed NamedTuples 2026-03-28 16:57:59 -07:00
Disty0 06fe4c7f20 SDNQ cleanup triton_mm 2026-03-29 00:44:58 +03:00
Disty0 005eb789a3 SDNQ use combination config for Triton MM 2026-03-28 18:02:17 +03:00
vladmandic b86e357b8e update nunchaku code
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-28 09:49:05 +01:00
vladmandic 611dfe4301 update nunchaku installer
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-28 08:57:23 +01:00