Commit
•
506d74f
1
Parent(s):
510c86f
Example for this model (#9)
Browse files- Example for this model (68e860ea703e6a0d4e7fc9fe7504c1886c0f0e56)
Co-authored-by: Ey Pacha! <eypacha@users.noreply.huggingface.co>
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 |
+
```
|