Skip to content

Handling cue word splicing in low-pass guidance #6

@lllzzz3

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?

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