mirror of
https://github.com/vladmandic/automatic
synced 2026-09-10 23:08:43 +02:00
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
This commit is contained in:
@@ -149,7 +149,7 @@ def process_base(p: processing.StableDiffusionProcessing):
|
||||
if 'detailer' in p.ops:
|
||||
desc = 'Detail'
|
||||
p.prompts, p.network_data = extra_networks.parse_prompts(p.prompts, p.network_data)
|
||||
extra_networks.activate_filtered(p) # networks must patch weights before prompt encode so te loras affect embeds
|
||||
extra_networks.activate(p) # networks must patch weights before prompt encode so te loras affect embeds
|
||||
base_args = set_pipeline_args(
|
||||
p=p,
|
||||
model=shared.sd_model,
|
||||
@@ -313,7 +313,7 @@ def process_hires(p: processing.StableDiffusionProcessing, output):
|
||||
prompts, p.network_data = extra_networks.parse_prompts(prompts)
|
||||
reset_prompts = True
|
||||
if reset_prompts or ('base' in p.skip):
|
||||
extra_networks.activate_filtered(p)
|
||||
extra_networks.activate(p)
|
||||
|
||||
hires_args = set_pipeline_args(
|
||||
p=p,
|
||||
|
||||
Reference in New Issue
Block a user