Update README.md
Browse files
README.md
CHANGED
@@ -2,3 +2,16 @@ license: creativeml-openrail-m
|
|
2 |
tags:
|
3 |
- stable-diffusion
|
4 |
- text-to-image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
tags:
|
3 |
- stable-diffusion
|
4 |
- text-to-image
|
5 |
+
|
6 |
+
code example:
|
7 |
+
|
8 |
+
from diffusers import StableDiffusionPipeline
|
9 |
+
import torch
|
10 |
+
|
11 |
+
model_id = "michaelz/arcaneface-diffusion"
|
12 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
13 |
+
pipe = pipe.to("cuda")
|
14 |
+
|
15 |
+
prompt = "arcaneface, a beautiful girl"
|
16 |
+
image = pipe(prompt).images[0]
|
17 |
+
image.save("example.png")
|