From 7c75d8e98d88816f2a2d76d542b2814ec446f0dc Mon Sep 17 00:00:00 2001 From: Edna <88869424+Ednaordinary@users.noreply.github.com> Date: Wed, 11 Jun 2025 19:15:18 -0600 Subject: [PATCH] dont modify mask (for now) --- src/diffusers/pipelines/chroma/pipeline_chroma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffusers/pipelines/chroma/pipeline_chroma.py b/src/diffusers/pipelines/chroma/pipeline_chroma.py index 09883f54c7..1ddce5fb71 100644 --- a/src/diffusers/pipelines/chroma/pipeline_chroma.py +++ b/src/diffusers/pipelines/chroma/pipeline_chroma.py @@ -227,7 +227,7 @@ class ChromaPipeline( text_input_ids = text_inputs.input_ids untruncated_ids = self.tokenizer(prompt, padding="longest", return_tensors="pt").input_ids - text_inputs.attention_mask[:, : text_inputs.length + 1] = 1.0 + #text_inputs.attention_mask[:, : text_inputs.length + 1] = 1.0 prompt_embeds = self.text_encoder( text_input_ids.to(device),