Fictiverse commited on
Commit
4f344ed
1 Parent(s): 515baff

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -1
README.md CHANGED
@@ -8,5 +8,25 @@ Use **VoxelArt** in your prompts.
8
 
9
  ### Sample images:
10
  ![voxelart.jpg](https://s3.amazonaws.com/moonup/production/uploads/1668056713800-635749860725c2f190a76e88.jpeg)
 
11
 
12
- Based on StableDiffusion 1.5 model
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  ### Sample images:
10
  ![voxelart.jpg](https://s3.amazonaws.com/moonup/production/uploads/1668056713800-635749860725c2f190a76e88.jpeg)
11
+ Based on StableDiffusion 1.5 model
12
 
13
+ ### 🧨 Diffusers
14
+
15
+ This model can be used just like any other Stable Diffusion model. For more information,
16
+ please have a look at the [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion).
17
+
18
+ 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]().
19
+
20
+ ```python
21
+ from diffusers import StableDiffusionPipeline
22
+ import torch
23
+
24
+ model_id = "Fictiverse/Stable_Diffusion_PaperCut_Model"
25
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
26
+ pipe = pipe.to("cuda")
27
+
28
+ prompt = "PaperCut R2-D2"
29
+ image = pipe(prompt).images[0]
30
+
31
+ image.save("./R2-D2.png")
32
+ ```