wanghaofan
commited on
Commit
•
ca41bd1
1
Parent(s):
f155fcc
Update README.md
Browse files
README.md
CHANGED
@@ -4,7 +4,9 @@ tags:
|
|
4 |
- stable-diffusion
|
5 |
- lora
|
6 |
- diffusers
|
7 |
-
-
|
|
|
|
|
8 |
widget:
|
9 |
- text: >-
|
10 |
a young college student, walking on the street, campus background,
|
@@ -28,12 +30,52 @@ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICE
|
|
28 |
---
|
29 |
# FLUX.1-dev-LoRA-AntiBlur
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
<Gallery />
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
|
|
34 |
|
35 |
-
|
36 |
|
37 |
-
Weights for this model are available in Safetensors format.
|
38 |
|
39 |
-
|
|
|
|
4 |
- stable-diffusion
|
5 |
- lora
|
6 |
- diffusers
|
7 |
+
- image-generation
|
8 |
+
- flux
|
9 |
+
- safetensors
|
10 |
widget:
|
11 |
- text: >-
|
12 |
a young college student, walking on the street, campus background,
|
|
|
30 |
---
|
31 |
# FLUX.1-dev-LoRA-AntiBlur
|
32 |
|
33 |
+
This is a functional LoRA trained on FLUX.1-dev for deep DoF (Anti-Blur🔥) by [Vadim_Fedenko](https://www.shakker.ai/userpage/1f90018d803d4045b8dec4d627915098/publish) on [Shakker AI](https://www.shakker.ai/modelinfo/5c3fa3f1d5034e63be325196eae0b4f6?from=search).
|
34 |
+
|
35 |
+
<div class="container">
|
36 |
+
<img src="./poster.jpg" width="1024"/>
|
37 |
+
</div>
|
38 |
+
|
39 |
+
## Showcases
|
40 |
<Gallery />
|
41 |
|
42 |
+
## Comparison
|
43 |
+
<div class="container">
|
44 |
+
<img src="./comparison1.png" width="1024"/>
|
45 |
+
</div>
|
46 |
+
|
47 |
+
<div class="container">
|
48 |
+
<img src="./comparison2.png" width="1024"/>
|
49 |
+
</div>
|
50 |
+
|
51 |
+
## Trigger words
|
52 |
+
The trigger word is not required. The recommended scale is `1.0` to `1.5` in diffusers.
|
53 |
+
|
54 |
+
## Inference
|
55 |
+
|
56 |
+
```python
|
57 |
+
import torch
|
58 |
+
from diffusers import FluxPipeline
|
59 |
+
|
60 |
+
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
|
61 |
+
pipe.load_lora_weights("Shakker-Labs/FLUX.1-dev-LoRA-AntiBlur", weight_name="FLUX-dev-lora-AntiBlur.safetensors")
|
62 |
+
pipe.fuse_lora(lora_scale=1.5)
|
63 |
+
pipe.to("cuda")
|
64 |
+
|
65 |
+
prompt = "a young college student, walking on the street, campus background, photography"
|
66 |
+
|
67 |
+
image = pipe(prompt,
|
68 |
+
num_inference_steps=24,
|
69 |
+
guidance_scale=3.5,
|
70 |
+
width=768, height=1024,
|
71 |
+
).images[0]
|
72 |
+
image.save(f"example.png")
|
73 |
+
```
|
74 |
|
75 |
+
## Online Inference
|
76 |
|
77 |
+
You can also run this model at [Shakker AI](https://www.shakker.ai/modelinfo/5c3fa3f1d5034e63be325196eae0b4f6?from=search), where we provide an online interface to generate images.
|
78 |
|
|
|
79 |
|
80 |
+
## Acknowledgements
|
81 |
+
This model is trained by our copyrighted users [Vadim_Fedenko](https://www.shakker.ai/userpage/1f90018d803d4045b8dec4d627915098/publish). We release this model under permissions. The model follows [flux-1-dev-non-commercial-license](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md).
|