Commit
·
f8a4391
1
Parent(s):
99bb9ed
Update README.md
Browse files
README.md
CHANGED
|
@@ -21,4 +21,22 @@ Use prompt: 'mdjrny-v4 style'
|
|
| 21 |
<img src="https://s3.amazonaws.com/moonup/production/uploads/1667904587609-63265d019f9d19bfd4f45031.png" width="100%"/>
|
| 22 |
<img src="https://s3.amazonaws.com/moonup/production/uploads/1667904587646-63265d019f9d19bfd4f45031.png" width="100%"/>
|
| 23 |
|
| 24 |
-
[Click here](https://prompthero.com/midjourney-prompts?version=4) for more Midjourney v4 prompts and inspiration.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
<img src="https://s3.amazonaws.com/moonup/production/uploads/1667904587609-63265d019f9d19bfd4f45031.png" width="100%"/>
|
| 22 |
<img src="https://s3.amazonaws.com/moonup/production/uploads/1667904587646-63265d019f9d19bfd4f45031.png" width="100%"/>
|
| 23 |
|
| 24 |
+
[Click here](https://prompthero.com/midjourney-prompts?version=4) for more Midjourney v4 prompts and inspiration.
|
| 25 |
+
|
| 26 |
+
### 🧨 Diffusers
|
| 27 |
+
|
| 28 |
+
This model can be used just like any other Stable Diffusion model. For more information,
|
| 29 |
+
please have a look at the [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion).
|
| 30 |
+
|
| 31 |
+
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]().
|
| 32 |
+
|
| 33 |
+
```python
|
| 34 |
+
from diffusers import StableDiffusionPipeline
|
| 35 |
+
import torch
|
| 36 |
+
model_id = "nitrosocke/mo-di-diffusion"
|
| 37 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 38 |
+
pipe = pipe.to("cuda")
|
| 39 |
+
prompt = "a magical princess with golden hair, modern disney style"
|
| 40 |
+
image = pipe(prompt).images[0]
|
| 41 |
+
image.save("./magical_princess.png")
|
| 42 |
+
```
|