Update README.md
Browse files
README.md
CHANGED
|
@@ -30,20 +30,9 @@ You should use FRSCHIAN style to trigger the image generation.
|
|
| 30 |
## Creating images using a diffusers
|
| 31 |
|
| 32 |
```py
|
| 33 |
-
import torch
|
| 34 |
from diffusers import AutoPipelineForText2Image
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
prompt = "Rumi,in gang style , behind the ocean , whith a whale in the space that he talking with rumi ! use FRSCHIAN style "
|
| 40 |
-
image = pipe(
|
| 41 |
-
prompt=prompt,
|
| 42 |
-
guidance_scale=3.5,
|
| 43 |
-
height=1024,
|
| 44 |
-
width=1024,
|
| 45 |
-
num_inference_steps=15,
|
| 46 |
-
# generator=torch.Generator(device="cpu").manual_seed(208070), # for reproducibility
|
| 47 |
-
).images[0]
|
| 48 |
-
image.save("s4.png")
|
| 49 |
```
|
|
|
|
| 30 |
## Creating images using a diffusers
|
| 31 |
|
| 32 |
```py
|
|
|
|
| 33 |
from diffusers import AutoPipelineForText2Image
|
| 34 |
+
import torch
|
| 35 |
+
pipeline = AutoPipelineForText2Image.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16).to('cuda')
|
| 36 |
+
pipeline.load_lora_weights('tarfandoon/farshchian_flux', weight_name='flux_lora.safetensors')
|
| 37 |
+
image = pipeline('Rumi,in gang style , behind the ocean , whith a whale in the space that he talking with rumi ! use FRSCHIAN style').images[0]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
```
|