Update README.md
Browse files
README.md
CHANGED
@@ -32,7 +32,25 @@ This Lora, designed for the Flux Dev model, brings the rich, textured world of i
|
|
32 |
## Try It Out!
|
33 |
|
34 |
I'm excited to share this Lora with the community and see what you create with it. Whether you're into landscapes, portraits, or abstract art, this impasto Lora can add a new dimension to your work.
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
## Final Thoughts
|
37 |
|
38 |
Creating this Lora was a labor of love, and I hope it brings as much joy to your creations as it has to mine. Happy generating, and don't forget to share your results!
|
|
|
32 |
## Try It Out!
|
33 |
|
34 |
I'm excited to share this Lora with the community and see what you create with it. Whether you're into landscapes, portraits, or abstract art, this impasto Lora can add a new dimension to your work.
|
35 |
+
```python
|
36 |
+
Inference
|
37 |
+
import torch
|
38 |
+
from diffusers import FluxPipeline
|
39 |
+
|
40 |
+
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
|
41 |
+
pipe.load_lora_weights("ABDALLALSWAITI/impasto-style-lora", weight_name="impasto_style_lora.safetensors")
|
42 |
+
pipe.fuse_lora(lora_scale=1.5)
|
43 |
+
pipe.to("cuda")
|
44 |
+
|
45 |
+
prompt = "A beautiful woman, flim rendering"
|
46 |
+
|
47 |
+
image = pipe(prompt,
|
48 |
+
num_inference_steps=24,
|
49 |
+
guidance_scale=3.5,
|
50 |
+
width=768, height=1024,
|
51 |
+
).images[0]
|
52 |
+
image.save(f"example.png")
|
53 |
+
```
|
54 |
## Final Thoughts
|
55 |
|
56 |
Creating this Lora was a labor of love, and I hope it brings as much joy to your creations as it has to mine. Happy generating, and don't forget to share your results!
|