Fictiverse commited on
Commit
d5ed253
1 Parent(s): f4b39a1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -1
README.md CHANGED
@@ -10,4 +10,25 @@ Use **BalloonArt** in your prompts.
10
 
11
  ### Sample images:
12
  ![twist.png](https://s3.amazonaws.com/moonup/production/uploads/1668560110206-635749860725c2f190a76e88.png)
13
- Based on StableDiffusion 1.5 model
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
 
11
  ### Sample images:
12
  ![twist.png](https://s3.amazonaws.com/moonup/production/uploads/1668560110206-635749860725c2f190a76e88.png)
13
+ Based on StableDiffusion 1.5 model
14
+
15
+ ### 🧨 Diffusers
16
+
17
+ This model can be used just like any other Stable Diffusion model. For more information,
18
+ please have a look at the [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion).
19
+
20
+ You can also export the model to [ONNX](https://huggingface.co/docs/diffusers/optimization/onnx), [MPS](https://huggingface.co/docs/diffusers/optimization/mps) and/or [FLAX/JAX]().
21
+
22
+ ```python
23
+ from diffusers import StableDiffusionPipeline
24
+ import torch
25
+
26
+ model_id = "Fictiverse/Stable_Diffusion_PaperCut_Model"
27
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
28
+ pipe = pipe.to("cuda")
29
+
30
+ prompt = "PaperCut R2-D2"
31
+ image = pipe(prompt).images[0]
32
+
33
+ image.save("./R2-D2.png")
34
+ ```