doc: update readme
Browse files
README.md
CHANGED
|
@@ -1,15 +1,50 @@
|
|
| 1 |
---
|
| 2 |
license: creativeml-openrail-m
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
-
# Plat Diffusion
|
| 6 |
|
| 7 |
-
Plat Diffusion is a fine-tuned model based on [
|
| 8 |
|
| 9 |
-
 with images generated with niji・journey.
|
| 14 |
|
| 15 |
+

|
| 16 |
|
| 17 |
```
|
| 18 |
+
masterpiece, 1girl, flower, sunflower, solo, smile, earrings, shirt, jewelry, holding, blurry, bangs, petals, blush, long hair, looking at viewer, holding flower, brown hair, white shirt, collared shirt, yellow flower, blurry background, closed mouth, blue eyes, upper body, depth of field
|
| 19 |
```
|
| 20 |
|
| 21 |
+
### Recomended Negative Prompt
|
| 22 |
+
Same as NAI's "Low Quality + Bad Anatomy"
|
| 23 |
|
| 24 |
+
```
|
| 25 |
+
lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
## Special Tags
|
| 29 |
+
|
| 30 |
+
In version 1.2.1, the following special tags can be used
|
| 31 |
+
|
| 32 |
+
- masterpiece: high quality illustrations are classified as `masterpiece`.
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
# 🧨 Diffusers
|
| 37 |
+
|
| 38 |
+
```
|
| 39 |
+
from diffusers import StableDiffusionPipeline
|
| 40 |
+
import torch
|
| 41 |
+
|
| 42 |
+
model_id = "p1atdev/plat-diffusion"
|
| 43 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 44 |
+
pipe = pipe.to("cuda")
|
| 45 |
+
|
| 46 |
+
prompt = "masterpiece, 1girl, "
|
| 47 |
+
image = pipe(prompt).images[0]
|
| 48 |
+
|
| 49 |
+
image.save("girl.png")
|
| 50 |
+
```
|