mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
lora disable fuse on partially applied network
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
- fix full-screen image-viewer toolbar actions with control tab
|
||||
- improve filename sanitization
|
||||
- lora auto-detect low/high stage if not specified
|
||||
- lora disable fuse on partially applied network
|
||||
- fix networks display with extended characters, thanks @awsr
|
||||
|
||||
## Update for 2025-10-18
|
||||
|
||||
@@ -61,6 +61,7 @@ def load_diffusers(name: str, network_on_disk: network.NetworkOnDisk, lora_scale
|
||||
try:
|
||||
if lora_module is not None and isinstance(lora_module, list) and len(lora_module) > 0:
|
||||
name = load_per_module(sd_model, network_on_disk.filename, adapter_name=name, lora_modules=lora_module)
|
||||
sd_model._lora_partial = True # pylint: disable=protected-access
|
||||
else:
|
||||
sd_model.load_lora_weights(network_on_disk.filename, adapter_name=name)
|
||||
except Exception as e:
|
||||
|
||||
@@ -78,4 +78,8 @@ def disable_fuse():
|
||||
return True
|
||||
if hasattr(shared.sd_model, 'transformer') and hasattr(shared.sd_model.transformer, 'quantization_config'):
|
||||
return True
|
||||
if hasattr(shared.sd_model, 'transformer_2') and hasattr(shared.sd_model.transformer_2, 'quantization_config'):
|
||||
return True
|
||||
if hasattr(shared.sd_model, '_lora_partial'):
|
||||
return True
|
||||
return shared.sd_model_type in fuse_ignore
|
||||
|
||||
Reference in New Issue
Block a user