Skip to content

Handling cue word splicing in low-pass guidance #6

Description

@lllzzz3

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions