p1atdev commited on
Commit
0aa9984
1 Parent(s): aa8e74b

add negative prompt to diffusers

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -39,7 +39,8 @@ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float
39
  pipe = pipe.to("cuda")
40
 
41
  prompt = "masterpiece, best quality, 1girl, orange feather, blue crystals, blurry foreground"
42
- image = pipe(prompt).images[0]
 
43
 
44
  image.save("girl.png")
45
  ```
 
39
  pipe = pipe.to("cuda")
40
 
41
  prompt = "masterpiece, best quality, 1girl, orange feather, blue crystals, blurry foreground"
42
+ negative_prompt = "nsfw, worst quality, low quality, deleted, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, jpeg artifacts, signature, watermark, username, blurry"
43
+ image = pipe(prompt, negative_prompt=negative_prompt).images[0]
44
 
45
  image.save("girl.png")
46
  ```