From 7787ec11c861d686c8cfe5196f8261b28ade5d7b Mon Sep 17 00:00:00 2001 From: DN6 Date: Tue, 10 Jun 2025 23:51:08 +0530 Subject: [PATCH] update --- src/diffusers/pipelines/flux/pipeline_flux.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/diffusers/pipelines/flux/pipeline_flux.py b/src/diffusers/pipelines/flux/pipeline_flux.py index 186e3f79e1..bc9a147b4c 100644 --- a/src/diffusers/pipelines/flux/pipeline_flux.py +++ b/src/diffusers/pipelines/flux/pipeline_flux.py @@ -263,8 +263,7 @@ class FluxPipeline( ) prompt_embeds = self.text_encoder_2( - text_input_ids.to(device), - output_hidden_states=False, + text_input_ids.to(device), output_hidden_states=False, attention_mask=text_inputs.attention_mask.to(device) )[0] dtype = self.text_encoder_2.dtype