diff --git a/modules/processing_args.py b/modules/processing_args.py index 7721fe371..36f637873 100644 --- a/modules/processing_args.py +++ b/modules/processing_args.py @@ -148,6 +148,8 @@ def set_pipeline_args(p, model, prompts:list, negative_prompts:list, prompts_2:t steps = kwargs.get("num_inference_steps", None) or len(getattr(p, 'timesteps', ['1'])) clip_skip = kwargs.pop("clip_skip", 1) + extra_networks.activate(p, include=['text_encoder', 'text_encoder_2', 'text_encoder_3']) + parser = 'fixed' prompt_attention = prompt_attention or shared.opts.prompt_attention if (prompt_attention != 'fixed') and ('Onnx' not in model.__class__.__name__) and ('prompt' not in p.task_args) and ( @@ -168,7 +170,6 @@ def set_pipeline_args(p, model, prompts:list, negative_prompts:list, prompts_2:t else: prompt_parser_diffusers.embedder = None - extra_networks.activate(p, include=['text_encoder', 'text_encoder_2', 'text_encoder_3']) if 'prompt' in possible: if 'OmniGen' in model.__class__.__name__: prompts = [p.replace('|image|', '<|image_1|>') for p in prompts]