Bug fixes and minor features
This commit is contained in:
1 parent
5a70b7f38d
commit
5da3613e0b
12 files changed
+218
-31
No files matched your search
@@ -665,7 +665,9 @@ def encode_prompts_pixart(
|
||||
prompt_attention_mask = text_inputs.attention_mask
|
||||
prompt_attention_mask = prompt_attention_mask.to(text_encoder.device)
|
||||
|
||||
prompt_embeds = text_encoder(text_input_ids.to(text_encoder.device), attention_mask=prompt_attention_mask)
|
||||
text_input_ids = text_input_ids.to(text_encoder.device)
|
||||
|
||||
prompt_embeds = text_encoder(text_input_ids, attention_mask=prompt_attention_mask)
|
||||
|
||||
return prompt_embeds.last_hidden_state, prompt_attention_mask
|
||||
|
||||
|
||||
Reference in new issue
Block a user