Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why two same negative prompt #144

Open
massyzs opened this issue Dec 11, 2024 · 1 comment
Open

Why two same negative prompt #144

massyzs opened this issue Dec 11, 2024 · 1 comment

Comments

@massyzs
Copy link

massyzs commented Dec 11, 2024

Hi,
I'm wondering the purpose of using two same negative prompt embedding.
prompt_embeds = torch.cat([prompt_embeds, negative_prompt_embeds, negative_prompt_embeds])

And you set
noise_pred = ( noise_pred_uncond + self.guidance_scale * (noise_pred_text - noise_pred_image) + self.image_guidance_scale * (noise_pred_image - noise_pred_uncond) )
In this case why not merge the scale factor?

@041859265
Copy link

I don't know how to set it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants