How can I use negative prompt in stable-diffusion-xl-base-1.0

#33
by StevenKim - opened

Hi, I can't find the place to input negative prompt in stable-diffusion-xl-base-1.0 either in the code (images = pipe(prompt=prompt).images[0]) or in the document. Can someone tell me where I can input negative prompt for it?

This comment has been hidden

Check: https://huggingface.co/docs/diffusers/main/en/api/pipelines/stable_diffusion/stable_diffusion_xl#diffusers.StableDiffusionXLPipeline.__call__.negative_prompt

You can just pass it with this argument:

pipe(prompt=prompt, negative_prompt=negative_prompt).images[0]

Sign up or log in to comment