michaelz commited on
Commit
192697f
1 Parent(s): 9714169

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -0
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")