Update README.md
Browse files
README.md
CHANGED
@@ -85,11 +85,11 @@ model.to(torch.bfloat16).save_pretrained("merged-flux")
|
|
85 |
## Inference code
|
86 |
|
87 |
```python
|
88 |
-
from diffusers import FluxPipeline
|
89 |
import torch
|
90 |
|
91 |
pipeline = FluxPipeline.from_pretrained(
|
92 |
-
"sayakpaul/FLUX.1-merged",
|
93 |
).to("cuda")
|
94 |
image = pipeline(
|
95 |
prompt="a tiny astronaut hatching from an egg on the moon",
|
|
|
85 |
## Inference code
|
86 |
|
87 |
```python
|
88 |
+
from diffusers import FluxPipeline
|
89 |
import torch
|
90 |
|
91 |
pipeline = FluxPipeline.from_pretrained(
|
92 |
+
"sayakpaul/FLUX.1-merged", torch_dtype=torch.bfloat16
|
93 |
).to("cuda")
|
94 |
image = pipeline(
|
95 |
prompt="a tiny astronaut hatching from an egg on the moon",
|