s3nh commited on
Commit
b0b64e8
1 Parent(s): de40cc2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +19 -0
README.md CHANGED
@@ -17,6 +17,25 @@ Training steps included:
17
  - prior preservation loss
18
  - train-text-encoder fine tuning
19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  # Gallery
21
 
22
  ## Bus riding to school, beksinski style.
 
17
  - prior preservation loss
18
  - train-text-encoder fine tuning
19
 
20
+ ### 🧨 Diffusers
21
+
22
+ This model can be used just like any other Stable Diffusion model. For more information,
23
+ please have a look at the [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion).
24
+
25
+ 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]().
26
+
27
+ ```python
28
+ #!pip install diffusers transformers scipy torch
29
+ from diffusers import StableDiffusionPipeline
30
+ import torch
31
+ model_id = "s3nh/beksinski-style-stable-diffusion"
32
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
33
+ pipe = pipe.to("cuda")
34
+ prompt = "Bus riding to school, beksinski style"
35
+ image = pipe(prompt).images[0]
36
+ image.save("./pixel.png")
37
+ ```
38
+
39
  # Gallery
40
 
41
  ## Bus riding to school, beksinski style.