1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00

dont modify mask (for now)

This commit is contained in:
Edna
2025-06-11 19:15:18 -06:00
committed by GitHub
parent 38429ffcac
commit 7c75d8e98d

View File

@@ -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),