instruct-pix2pix icon indicating copy to clipboard operation
instruct-pix2pix copied to clipboard

Why two same negative prompt

Open massyzs opened this issue 1 year ago • 1 comments

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?

massyzs avatar Dec 11 '24 12:12 massyzs

I don't know how to set it up.

041859265 avatar Dec 11 '24 14:12 041859265