-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
if do_classifier_free_guidance and use_low_pass_guidance:
prompt_embeds_orig = prompt_embeds
prompt_embeds = torch.cat([negative_prompt_embeds, negative_prompt_embeds, prompt_embeds_orig], dim=0)
prompt_embeds_init = torch.cat([negative_prompt_embeds, prompt_embeds_orig], dim=0)
elif do_classifier_free_guidance:
prompt_embeds_orig = prompt_embeds
prompt_embeds_init = torch.cat([negative_prompt_embeds, prompt_embeds_orig], dim=0)
prompt_embeds = torch.cat([negative_prompt_embeds, prompt_embeds_orig], dim=0)
Why does negative_prompt_embeds appear twice when handling low-pass guidance?
Metadata
Metadata
Assignees
Labels
No labels