Update README.md
Browse files
README.md
CHANGED
|
@@ -19,21 +19,3 @@ Use prompt: 'mdjrny-v4 style'
|
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
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]().
|
| 29 |
-
|
| 30 |
-
```python
|
| 31 |
-
from diffusers import StableDiffusionPipeline
|
| 32 |
-
import torch
|
| 33 |
-
model_id = "prompthero/openjourney"
|
| 34 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 35 |
-
pipe = pipe.to("cuda")
|
| 36 |
-
prompt = "retro serie of different cars with different colors and shapes, mdjrny-v4 style"
|
| 37 |
-
image = pipe(prompt).images[0]
|
| 38 |
-
image.save("./retro_cars.png")
|
| 39 |
-
```
|
|
|
|
| 19 |
|
| 20 |
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|