pykeio/diffusers

How to use negative prompt?

oovm opened this issue · 1 comments

oovm commented
How to use negative prompt?

A negative prompt can be configured in StableDiffusionTxt2ImgOptions like so:

	let imgs = pipeline.txt2img(
		"photo of a red fox",
		&mut scheduler,
		StableDiffusionTxt2ImgOptions {
			negative_prompt: Some("blurry, jpeg artifacts...".into()),
			..Default::default()
		}
	)?;