50 Commits

Author SHA1 Message Date
Vladimir Mandic 76941efc7e strict typechecking
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-16 12:45:50 +02:00
Vladimir Mandic 6aa5b45b80 remove directml
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-10 13:43:45 +02:00
Vladimir Mandic 514a68b1af add storage analyzer
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-02 11:22:12 +02:00
CalamitousFelicitousness 00d1b7cff6 feat(ui): load unet into secondary slot from networks panel
The refine toggle doubles as the slot selector on the UNet/DiT page:
with it active a card click sets sd_unet_secondary instead of sd_unet,
mirroring base/refiner selection on the model page.
2026-07-12 03:50:48 +01:00
CalamitousFelicitousness 6e63f351eb refactor(ui): drop quicksettings companion machinery for secondary unet
The secondary unet loads from the networks panel toggle or the settings
page; companion ordering and dynamic visibility pushes in ui_settings.py
are not worth their footprint for one setting.
2026-07-12 03:44:20 +01:00
CalamitousFelicitousness 4785dedc32 fix(ui): set refiner option from networks panel refine toggle
The hidden change_refiner button passed key='sd_model_checkpoint', so
loading a card with the refine toggle active reloaded the base model
and never set sd_model_refiner.
2026-07-11 20:26:12 +01:00
CalamitousFelicitousness 8c884c1e02 feat(model): secondary unet override slot and ideogram4 native loading
One UNET override cannot serve dual-transformer arches: ideogram4
conditional/unconditional and wan combined-stage experts need separate
files, and previously a single override landed on both experts.

- sd_unet_secondary option with per-slot tracking, consumed-state sync,
  arch-change reset, and incompatible-override fallback
- dropdown renders beside the primary, follows it into quicksettings,
  and is visible only for dual-transformer model types
- ideogram4 native single-file spec with a quant-aware fused-qkv
  converter; such converters run before comfy_quant detection via
  TransformerSpec.converter_handles_quant
- quicksettings render in configured order (sort keyed on the option
  object and always fell back to alphabetical)
- post-load dtype warning skips quantized transformers
2026-07-11 06:40:07 +01:00
CalamitousFelicitousness 9ffaed47ba feat(te): reset text-encoder override when base model architecture changes
When a checkpoint change switches the model type, a custom sd_text_encoder no
longer fits, so reset it to Default and clear loaded_te, mirroring the sd_unet
reset. The type is resolved with detect_pipeline on both the loaded and incoming
checkpoints, so same-arch switches (Krea2 Base and Turbo share one pipeline
class) do not reset. The checkpoint handler also returns sd_text_encoder
alongside sd_unet so the dropdown reflects it.
2026-07-06 02:29:36 +01:00
CalamitousFelicitousness f96a0639e2 fix(te): apply sd_text_encoder changes for non-T5 encoders
reload_text_encoder only hot-swapped T5-family encoders and ran only at initial
load, so changing sd_text_encoder for a model with a generic encoder (Krea2's
Qwen3-VL) never took effect until a full model reload. Track the loaded
selection and, for encoders with no in-place swap, reload the model on change,
triggered from the settings handler. The fresh model object also invalidates
the prompt cache.
2026-07-05 22:49:47 +01:00
CalamitousFelicitousness 25fa8e0f15 refactor(ui): shorten unet-sync handlers, align load logs
- ui_settings: rename to sync_checkpoint_unet / sync_checkpoint_unet_forced
- sd_models: cross-arch unet reset log uses key=value house style
- generic: native transformer dispatch logs loader=native
2026-05-31 00:24:33 +01:00
CalamitousFelicitousness 09c6229b1c fix(ui): refresh UNET dropdown after cross-arch model swap
When reload_model_weights resets shared.opts.sd_unet to Default on a cross-arch swap, the backend value changed but the dropdown component kept showing the previous selection because sd_unet was not in the change_checkpoint button's outputs.

Add the sd_unet component to the outputs and return its post-reload value via gr.update.
2026-05-31 00:24:33 +01:00
Vladimir Mandic ad9c937e68 Merge pull request #4862 from vladmandic/fix/editable-dropdown-blur
fix(ui): debounce editable dropdowns in quicksettings
2026-05-22 06:12:38 +02:00
Vladimir Mandic 7d91ee9611 enhance globals
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-21 12:02:01 +02:00
CalamitousFelicitousness 9de161e65a fix(ui): debounce editable dropdowns in quicksettings
Editable dropdowns (sd_model_checkpoint, sd_text_encoder) fired a
.change event on every keystroke because Gradio's allow_custom_value
keyup handler sets the value to the typed text.

- Use .blur instead of .change for DropdownEditable in quicksettings
- Validate model keys in run_settings_single before committing
2026-05-21 03:58:41 +01:00
Vladimir Mandic eb88f27a04 cleanup preview
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-09 13:32:29 +02:00
CalamitousFelicitousness 2fbe261634 fix(lint): drop unused f-prefix and add trailing newline 2026-05-07 22:21:58 +01:00
awsr f496da6550 Fix shutdown/restart behavior 2026-05-06 20:48:40 -07:00
Disty0 74c56da1d3 OpenVINO override diffusers_offload_mode to none 2026-05-07 00:51:35 +03:00
vladmandic 8070e51777 openvino backend
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-12 19:07:20 +02:00
vladmandic afe3786f5f add unet/dir to networks
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-22 11:09:45 +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 bfe014f5da modernize typing 2026-02-19 09:15:37 +01:00
awsr 0faabffc14 Simplify options init/save/load 2026-01-10 13:27:38 -08:00
awsr 878f2f5aa6 Use True/False instead of True/None 2025-12-19 00:22:57 -08:00
awsr 00d3be3dba show_progress requires "full", "minimal", or "hidden" 2025-11-28 02:27:19 -08:00
Vladimir Mandic 05261e708a ability to disable parts of the app
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-03 19:36:55 -05:00
Vladimir Mandic 3f0a53f5e4 cleanup
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-02 06:29:19 -05:00
vladmandic c71e15bc66 improve model matching
Signed-off-by: vladmandic <mandic00@live.com>
2025-10-26 12:58:26 -04:00
vladmandic 512036d291 reference load cleanup
Signed-off-by: vladmandic <mandic00@live.com>
2025-10-25 23:25:10 -04:00
Vladimir Mandic 2e4e741d47 seedvt2
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-12 15:35:08 -04:00
Vladimir Mandic 8b698ed67f upadte qwen pruning and allow hf models in subfolders
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-04 15:49:20 -04:00
Vladimir Mandic cd79f92dff add opts models_not_to_offload
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-19 11:21:54 -04:00
Vladimir Mandic 848f3421cc reorder system settings
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-31 16:29:57 -04:00
Vladimir Mandic b2dbef53e5 restyled all toolbuttons to be modernui native
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-31 15:01:50 -04:00
Vladimir Mandic 7ef342933e cleanup onnx init
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-16 09:46:49 -04:00
Vladimir Mandic 4b74fd26b5 redesign gpu monitor
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-07 13:56:13 -04:00
Vladimir Mandic a9c65c0e8c move api-only to legacy options
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-06 19:27:57 -04:00
Vladimir Mandic a91ee36b5c fix settings components mismatch
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-06 18:35:43 -04:00
Vladimir Mandic f7e433bd07 lint
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-01 18:26:57 -04:00
Vladimir Mandic 5a9b72ec57 add quicksettings reset button
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-31 19:39:20 -04:00
Vladimir Mandic a5b77b8ee2 remove dead code
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-05 16:47:25 -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 49c9a450f4 support manually downloaded diffuser models
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-03 15:52:54 -04:00
Vladimir Mandic 8473bae0fc 1000 papercuts
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-05-13 21:51:33 -04:00
Vladimir Mandic 5647d782f8 configurable restore metadata settings and params
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-04-26 10:45:49 -04:00
Vladimir Mandic 8c37607b82 add histrory ui
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-04-25 13:51:58 -04:00
Vladimir Mandic 5bdc87b68a fix server restart
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-04-03 08:22:43 -04:00
Vladimir Mandic def571dae9 fix settings save
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-03-30 15:29:18 -04:00
Vladimir Mandic a467e23d72 full ui-settings refactor
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-03-30 15:04:17 -04:00