Example for this model
#9
by
eypacha
- opened
README.md
CHANGED
@@ -33,10 +33,10 @@ You can also export the model to [ONNX](https://huggingface.co/docs/diffusers/op
|
|
33 |
```python
|
34 |
from diffusers import StableDiffusionPipeline
|
35 |
import torch
|
36 |
-
model_id = "
|
37 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
38 |
pipe = pipe.to("cuda")
|
39 |
-
prompt = "
|
40 |
image = pipe(prompt).images[0]
|
41 |
-
image.save("./
|
42 |
-
```
|
|
|
33 |
```python
|
34 |
from diffusers import StableDiffusionPipeline
|
35 |
import torch
|
36 |
+
model_id = "prompthero/midjourney-v4-diffusion "
|
37 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
38 |
pipe = pipe.to("cuda")
|
39 |
+
prompt = "retro serie of different cars with different colors and shapes, mdjrny-v4 style"
|
40 |
image = pipe(prompt).images[0]
|
41 |
+
image.save("./retro_cars.png")
|
42 |
+
```
|