27 Commits

Author SHA1 Message Date
CalamitousFelicitousness 55c3eb1325 refactor(lora): remove the lora_apply_te setting
Text encoder networks now apply unconditionally in the native path.

- remove the option, the per-request parameter and the control threading
- collapse activate_filtered into plain activate at all call sites
- drop the toggle from the prompt embed cache key
- register the retired key so existing configs load without warnings
2026-08-28 13:09:26 +01:00
CalamitousFelicitousness 4554b9a277 fix(lora): apply te networks before encode and honor lora_apply_te
Network activation ran after prompt encoding, so text encoder lora
weights never affected embeds on the first generation and the stale
result was then served from the embed cache. The trailing unfiltered
activate in network_load also overrode the te exclude filter, so the
lora_apply_te setting was never honored.

- parse and activate networks in process_base before pipeline args are built
- activate_filtered gates text encoder components on per-request or global
  lora_apply_te; used by base, hires, detailer and faceid call sites
- network_load accepts activate=False for callers that run their own
  deactivate/activate sequence with include/exclude
- network_activate walks excluded components in restore-only mode so a
  filtered text encoder reverts to backup instead of keeping stale deltas
- loaded_loras cache is single-entry since per-filter entries go stale when
  the setting toggles
- prompt embed cache key includes the effective lora_apply_te value
2026-07-08 03:06:04 +01:00
Vladimir Mandic 4747ca2fc0 lora change detection improvements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-09 09:38:54 +02:00
Vladimir Mandic 47543663f9 cleanup references to p.sd_model
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-02-19 20:48:42 +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
Vladimir Mandic 6fdd3a53cf reduce mandatory requirements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-02-18 17:53:08 +01:00
awsr 2f8976e28d Type standardization in processing_class 2026-01-21 16:35:19 -08: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 1185950c4a yet another lora refactor
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-12-09 13:40:19 -05:00
Vladimir Mandic 5ff847336b remove duplicate diffusers and move aux models to hfcache
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-11-01 10:39:43 -04:00
Vladimir Mandic 6760632f38 major model load refactor
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-10-26 13:22:29 -04:00
Vladimir Mandic 2acb883dda jumbo update, see changelog 2024-09-18 13:48:30 -04:00
Vladimir Mandic 5574833f0d refactor backend detection 2024-06-06 20:41:10 -04:00
Vladimir Mandic fdb5e240c6 fix face scripts 2024-05-31 14:45:57 -04:00
Vladimir Mandic 84d813bad4 fix faceid and improve insightface installer 2024-05-30 09:45:39 -04:00
Vladimir Mandic 9ff507d93a add todo token downsampling and simplify tomes 2024-04-28 20:29:28 -04:00
Vladimir Mandic 5ac36c6bf1 faceid improvements 2024-02-24 10:02:06 -05:00
Enes Sadık Özbek 974f19e84b faceid formatting 2024-02-24 09:56:08 -05:00
Enes Sadık Özbek c244e65f08 faceid intend 2024-02-24 09:56:08 -05:00
Enes Sadık Özbek 601317f81b Finish FaceID integration with other stuff 2024-02-24 09:56:08 -05:00
Enes Sadık Özbek fe2d0589b0 FaceID: Fix not deactivating extra networks after generation 2024-02-24 09:56:08 -05:00
Enes Sadık Özbek 88d513d89e add lora support to faceid 2024-02-24 09:56:08 -05:00
Vladimir Mandic d5a4f43f43 post release jumbo update 2024-02-08 12:10:32 -05:00
Vladimir Mandic ace8c3d33d face module apply style 2024-02-03 12:41:52 -05:00
Vladimir Mandic 0bfb17ba72 implement complete face module 2024-01-27 08:07:34 -05:00