ShadowPower commited on
Commit
bcf58fd
1 Parent(s): b3da269

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -0
README.md CHANGED
@@ -1,3 +1,25 @@
1
  ---
2
  license: creativeml-openrail-m
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: creativeml-openrail-m
3
  ---
4
+ How to use:
5
+ ```python
6
+ from diffusers import StableDiffusionOnnxPipeline, PNDMScheduler
7
+ model_path = r'ShadowPower/waifu-diffusion-diffusers-onnx-v1-3'
8
+
9
+ scheduler = PNDMScheduler(
10
+ beta_start=0.00085,
11
+ beta_end=0.012,
12
+ beta_schedule='scaled_linear',
13
+ skip_prk_steps=True,
14
+ tensor_format='np'
15
+ )
16
+ pipe = StableDiffusionOnnxPipeline.from_pretrained(
17
+ model_path,
18
+ provider="CPUExecutionProvider",
19
+ scheduler=scheduler
20
+ )
21
+
22
+ if __name__ == '__main__':
23
+ prompt = "1girl, hakurei reimu"
24
+ image = pipe(prompt).images[0]
25
+ ```