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 |
sketched style,A stick-figure-style robot, and some sci-fi machines, with
|
|
@@ -25,18 +27,46 @@ license: other
|
|
| 25 |
license_name: flux-1-dev-non-commercial-license
|
| 26 |
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
| 27 |
---
|
| 28 |
-
# FLUX.1-dev-LoRA-Children
|
| 29 |
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
|
|
|
|
|
|
|
|
|
|
| 33 |
## Trigger words
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
|
|
|
| 37 |
|
| 38 |
-
|
| 39 |
|
| 40 |
-
Weights for this model are available in Safetensors format.
|
| 41 |
|
| 42 |
-
|
|
|
|
|
|
| 4 |
- stable-diffusion
|
| 5 |
- lora
|
| 6 |
- diffusers
|
| 7 |
+
- image-generation
|
| 8 |
+
- flux
|
| 9 |
+
- safetensors
|
| 10 |
widget:
|
| 11 |
- text: >-
|
| 12 |
sketched style,A stick-figure-style robot, and some sci-fi machines, with
|
|
|
|
| 27 |
license_name: flux-1-dev-non-commercial-license
|
| 28 |
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
| 29 |
---
|
| 30 |
+
# FLUX.1-dev-LoRA-Children-Simple-Sketch
|
| 31 |
|
| 32 |
+
This is a LoRA trained on FLUX.1-dev for Children's Simple-Sketch by [Hongke](https://www.shakker.ai/userpage/b1f1d4128cec474c8085576e6c9fb761/publish) on [Shakker AI](https://www.shakker.ai/modelinfo/eb54f3880dd04cc4b9002d31753a12ec?from=personal_page).
|
| 33 |
+
|
| 34 |
+
<div class="container">
|
| 35 |
+
<img src="https://huggingface.co/Shakker-Labs/FLUX.1-dev-LoRA-live-3D/resolve/main/poster.jpg" width="1024"/>
|
| 36 |
+
</div>
|
| 37 |
|
| 38 |
|
| 39 |
+
## Showcases
|
| 40 |
+
<Gallery />
|
| 41 |
+
|
| 42 |
## Trigger words
|
| 43 |
+
You should use `sketched style` to trigger the image generation. The recommended scale is `0.8` to `1.5` in diffusers.
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
## Inference
|
| 47 |
+
|
| 48 |
+
```python
|
| 49 |
+
import torch
|
| 50 |
+
from diffusers import FluxPipeline
|
| 51 |
+
|
| 52 |
+
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
|
| 53 |
+
pipe.load_lora_weights("Shakker-Labs/FLUX.1-dev-LoRA-Children-Simple-Sketch", weight_name="FLUX-dev-lora-children-simple-sketch.safetensors")
|
| 54 |
+
pipe.fuse_lora(lora_scale=1.5)
|
| 55 |
+
pipe.to("cuda")
|
| 56 |
+
|
| 57 |
+
prompt = "sketched style,A joyful girl with balloons floats above a city wearing a hat and striped pants,"
|
| 58 |
|
| 59 |
+
image = pipe(prompt,
|
| 60 |
+
num_inference_steps=24,
|
| 61 |
+
guidance_scale=3.5,
|
| 62 |
+
).images[0]
|
| 63 |
+
image.save(f"example.png")
|
| 64 |
+
```
|
| 65 |
|
| 66 |
+
## Online Inference
|
| 67 |
|
| 68 |
+
You can also run this model at [Shakker AI](https://www.shakker.ai/modelinfo/eb54f3880dd04cc4b9002d31753a12ec?from=personal_page), where we provide an online interface to generate images.
|
| 69 |
|
|
|
|
| 70 |
|
| 71 |
+
## Acknowledgements
|
| 72 |
+
This model is trained by our copyrighted users [Hongke](https://www.shakker.ai/userpage/b1f1d4128cec474c8085576e6c9fb761/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).
|