Skip to content

Commit 70ab097

Browse files
Update examples/dreambooth/train_dreambooth.py
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
1 parent 362461b commit 70ab097

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

examples/dreambooth/train_dreambooth.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -789,10 +789,7 @@ def encode_prompt(text_encoder, input_ids, attention_mask, text_encoder_use_atte
789789
else:
790790
attention_mask = None
791791

792-
prompt_embeds = text_encoder(
793-
text_input_ids,
794-
attention_mask=attention_mask,
795-
return_dict=False,
792+
prompt_embeds = text_encoder(text_input_ids, attention_mask=attention_mask, return_dict=False)
796793
)
797794
prompt_embeds = prompt_embeds[0]
798795

0 commit comments

Comments
 (0)