Commit
·
aec0402
1
Parent(s):
29e1397
Update README.md
Browse files
README.md
CHANGED
@@ -22,6 +22,24 @@ Based of a finetuned Stable Diffusion V1.5, trained in Dreambooth with more than
|
|
22 |
|
23 |
by [riccardogiorato](https://twitter.com/riccardogiorato)
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
# **👇Model👇**
|
26 |
|
27 |
AI Model Weights available at huggingface: https://huggingface.co/riccardogiorato/beeple-diffusion
|
|
|
22 |
|
23 |
by [riccardogiorato](https://twitter.com/riccardogiorato)
|
24 |
|
25 |
+
### 🧨 Diffusers
|
26 |
+
|
27 |
+
This model can be used just like any other Stable Diffusion model. For more information,
|
28 |
+
please have a look at the [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion).
|
29 |
+
|
30 |
+
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]().
|
31 |
+
|
32 |
+
```python
|
33 |
+
from diffusers import StableDiffusionPipeline
|
34 |
+
import torch
|
35 |
+
model_id = "nitrosocke/mo-di-diffusion"
|
36 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
37 |
+
pipe = pipe.to("cuda")
|
38 |
+
prompt = "a magical witch with golden hair with beeple style"
|
39 |
+
image = pipe(prompt).images[0]
|
40 |
+
image.save("./magical_witch.png")
|
41 |
+
```
|
42 |
+
|
43 |
# **👇Model👇**
|
44 |
|
45 |
AI Model Weights available at huggingface: https://huggingface.co/riccardogiorato/beeple-diffusion
|