mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-27 17:22:53 +03:00
Update examples/dreambooth/train_dreambooth.py
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
This commit is contained in:
@@ -789,10 +789,7 @@ def encode_prompt(text_encoder, input_ids, attention_mask, text_encoder_use_atte
|
||||
else:
|
||||
attention_mask = None
|
||||
|
||||
prompt_embeds = text_encoder(
|
||||
text_input_ids,
|
||||
attention_mask=attention_mask,
|
||||
return_dict=False,
|
||||
prompt_embeds = text_encoder(text_input_ids, attention_mask=attention_mask, return_dict=False)
|
||||
)
|
||||
prompt_embeds = prompt_embeds[0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user