add negative prompt to diffusers
Browse files
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 |
-
|
|
|
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 |
```
|