31 Commits

Author SHA1 Message Date
CalamitousFelicitousness 4d6f2b65c8 chore(settings): remove the bmm attention methods
Batch matrix-matrix and Dynamic Attention BMM applied a legacy Attention
processor to pipe.unet, which a diffusion transformer does not have, so
they served unet models alone and said nothing elsewhere. The choices, the
processor and its slice helper are removed, an unrecognized method now
warns rather than selecting nothing, and a stored value is rewritten to
Scaled-Dot-Product on load.
2026-08-24 19:59:41 +01:00
CalamitousFelicitousness e0c3e00af2 chore(settings): remove dead attention options
xformers_options had no reader, and Sub-quadratic has not been an
attention choice for a long time, so the hypertile branches keyed on it
never ran. Configs that still store xformers_options load without the
unknown-setting warning.
2026-08-23 08:21:28 +01:00
Vladimir Mandic e3c57af560 pipeline init reordering
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-16 12:45:50 +02:00
Vladimir Mandic 76941efc7e strict typechecking
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-16 12:45:50 +02:00
CalamitousFelicitousness a6fe828aa2 fix(api): set compatibility options without crashing
clip_skip and the uni_pc_* opts live in opts.data without an OptionInfo in
data_labels (compatibility_opts). Options.set() read data_labels[key].onchange
unconditionally, so setting clip_skip via /sdapi/v1/options raised KeyError and
returned 500; the override_settings restore path had the same unguarded
data_labels[k] access for falsy-valued compat opts.

Guard the onchange lookup and read the stored value via getattr(opts, k), which
already falls back through data then data_labels.
2026-06-25 02:25:33 +01:00
Vladimir Mandic eb88f27a04 cleanup preview
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-09 13:32:29 +02:00
awsr ff247d8fd2 Merge branch 'dev' into RUF013 2026-03-24 07:12:51 -07:00
awsr fb853af4b0 RUF013 updates 2026-03-24 04:58:19 -07:00
vladmandic afe3786f5f add unet/dir to networks
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-22 11:09:45 +01:00
vladmandic 4e1c1a6844 add secrets manager
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-17 13:56:55 +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 6335130ca5 Rewrite to satisfy type checker 2026-01-13 16:44:54 -08:00
awsr b2798b15db Improved Options init 2026-01-13 16:08:58 -08:00
awsr 1dffdc17a9 Revert classvar removal. Simplify and update 2026-01-13 14:30:34 -08:00
awsr 3654d0fa18 Update typing, remove incorrect typing 2026-01-13 04:09:58 -08:00
awsr 08c871e8d1 Remove unused class vars 2026-01-13 04:08:48 -08:00
awsr ec86e52ded Correct type enforcement 2026-01-13 02:11:58 -08:00
awsr 2394a7fac1 Ignore false positives with static typing 2026-01-13 02:10:38 -08:00
awsr 418134b820 Update default filename handling 2026-01-10 14:53:07 -08:00
awsr 0faabffc14 Simplify options init/save/load 2026-01-10 13:27:38 -08:00
awsr 1a5f7ef642 Update OptionInfo import 2025-12-20 00:34:09 -08:00
awsr f20591ce5e Use updated Callable import
Importing from `typing` is considered deprecated since it's literally just internally calling from `collections.abc`
2025-12-18 23:27:53 -08:00
awsr eeca45c7b2 Update type annotations 2025-12-18 18:09:32 -08:00
awsr 05f767cf5f Keep option type definitions together...
and update type annotations.
- Since there's no literal for sets, and because functions usually shouldn't be used as parameter defaults, use None as default and then use `set()` as default during init.
2025-12-18 18:08:54 -08:00
awsr dcb7164d30 Update readfile type safety 2025-12-17 16:43:54 -08:00
awsr c22ca8d76e Create and opt in to dict type safety from JSON
Opt in via the keyword-only argument `dict_only`
2025-12-17 13:18:13 -08:00
Vladimir Mandic aa42dd9cca fix cwd on git version check fail
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-03 16:23:41 -05:00
Vladimir Mandic 72a9094b42 better model version detect and experimental pydantic v2
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-04 12:41:40 -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 4e449ca9b2 refactor monolithic shared.py and separate legacy options with logging
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-12 13:35:41 -04:00