wanghaofan
commited on
Commit
•
032b6d5
1
Parent(s):
8fa9212
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: a young woman
|
10 |
output:
|
@@ -17,12 +19,44 @@ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICE
|
|
17 |
---
|
18 |
# FLUX.1-dev-LoRA-add-details
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
<Gallery />
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
|
|
23 |
|
24 |
-
|
25 |
|
26 |
-
Weights for this model are available in Safetensors format.
|
27 |
|
28 |
-
|
|
|
|
4 |
- stable-diffusion
|
5 |
- lora
|
6 |
- diffusers
|
7 |
+
- image-generation
|
8 |
+
- flux
|
9 |
+
- safetensors
|
10 |
widget:
|
11 |
- text: a young woman
|
12 |
output:
|
|
|
19 |
---
|
20 |
# FLUX.1-dev-LoRA-add-details
|
21 |
|
22 |
+
This is a LoRA trained on FLUX.1-dev for enhancing realism and details, achieveing natural skin. Made by [Dote](https://www.shakker.ai/userpage/7728c1d6b47649548612edffcb470ccb/publish).
|
23 |
+
|
24 |
+
<div class="container">
|
25 |
+
<img src="./images/poster.jpeg" width="1024"/>
|
26 |
+
</div>
|
27 |
+
|
28 |
+
## Showcases
|
29 |
<Gallery />
|
30 |
|
31 |
+
## Trigger words
|
32 |
+
|
33 |
+
There is no essential trigger words. The recommended scale is `1.0`. The scale be can be negative.
|
34 |
+
|
35 |
+
## Inference
|
36 |
+
|
37 |
+
```python
|
38 |
+
import torch
|
39 |
+
from diffusers import FluxPipeline
|
40 |
+
|
41 |
+
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
|
42 |
+
pipe.load_lora_weights("Shakker-Labs/FLUX.1-dev-LoRA-blended-realistic-illustration", weight_name="FLUX.1-dev-LoRA-add-details")
|
43 |
+
pipe.fuse_lora(lora_scale=1.0)
|
44 |
+
pipe.to("cuda")
|
45 |
+
|
46 |
+
prompt = "A beautiful woman, flim rendering"
|
47 |
+
|
48 |
+
image = pipe(prompt,
|
49 |
+
num_inference_steps=24,
|
50 |
+
guidance_scale=3.5,
|
51 |
+
width=768, height=1024,
|
52 |
+
).images[0]
|
53 |
+
image.save(f"example.png")
|
54 |
+
```
|
55 |
|
56 |
+
## Online Inference
|
57 |
|
58 |
+
You can also download this model at [Shakker AI](https://www.shakker.ai/modelinfo/f040e8f8526945249ff4f150fc727eb3?from=personal_page), where we provide an online interface to generate images.
|
59 |
|
|
|
60 |
|
61 |
+
## Acknowledgements
|
62 |
+
This model is trained by our copyrighted users [Dote](https://www.shakker.ai/userpage/7728c1d6b47649548612edffcb470ccb/publish). We release this model under permissions.
|