mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
lora auto-detect low/high stage if not specified
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
+2
-1
@@ -1,6 +1,6 @@
|
||||
# Change Log for SD.Next
|
||||
|
||||
## Update for 2025-10-23
|
||||
## Update for 2025-10-24
|
||||
|
||||
- **Models**
|
||||
- [Tencent HunyuanImage 2.1](https://huggingface.co/tencent/HunyuanImage-2.1) in *full*, *distilled* and *refiner* variants
|
||||
@@ -35,6 +35,7 @@
|
||||
- video tab create `params.txt` with metadata
|
||||
- fix full-screen image-viewer toolbar actions with control tab
|
||||
- improve filename sanitization
|
||||
- lora auto-detect low/high stage if not specified
|
||||
- fix networks display with extended characters, thanks @awsr
|
||||
|
||||
## Update for 2025-10-18
|
||||
|
||||
@@ -132,6 +132,13 @@ def parse(p, params_list, step=0):
|
||||
lora_module.append('transformer_2')
|
||||
if params.named.get('module', None) is not None:
|
||||
lora_module.append(params.named['module'].lower())
|
||||
|
||||
if len(lora_module) == 0 and shared.sd_loaded:
|
||||
if hasattr(shared.sd_model, 'transformer') and (shared.sd_model.transformer is not None) and hasattr(shared.sd_model, 'transformer_2') and (shared.sd_model.transformer_2 is None):
|
||||
lora_module.append('transformer')
|
||||
if hasattr(shared.sd_model, 'transformer') and (shared.sd_model.transformer is None) and hasattr(shared.sd_model, 'transformer_2') and (shared.sd_model.transformer_2 is not None):
|
||||
lora_module.append('transformer_2')
|
||||
|
||||
lora_modules.append(lora_module)
|
||||
|
||||
return names, te_multipliers, unet_multipliers, dyn_dims, lora_modules
|
||||
|
||||
Reference in New Issue
Block a user