Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: other
|
3 |
+
library_name: diffusers
|
4 |
+
tags:
|
5 |
+
- text-to-image
|
6 |
+
- diffusers-training
|
7 |
+
- diffusers
|
8 |
+
- lora
|
9 |
+
- flux
|
10 |
+
- flux-diffusers
|
11 |
+
- template:sd-lora
|
12 |
+
base_model: black-forest-labs/FLUX.1-dev
|
13 |
+
instance_prompt: lego set in style of TOK
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the training script had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
|
20 |
+
# Flux DreamBooth LoRA - merve/flux-lego-lora-dreambooth
|
21 |
+
|
22 |
+
<Gallery />
|
23 |
+
|
24 |
+
## Model description
|
25 |
+
|
26 |
+
These are merve/flux-lego-lora-dreambooth DreamBooth LoRA weights for black-forest-labs/FLUX.1-dev.
|
27 |
+
|
28 |
+
The weights were trained using [DreamBooth](https://dreambooth.github.io/) with the [Flux diffusers trainer](https://github.com/huggingface/diffusers/blob/main/examples/dreambooth/README_flux.md).
|
29 |
+
|
30 |
+
Was LoRA for the text encoder enabled? False.
|
31 |
+
|
32 |
+
## Trigger words
|
33 |
+
|
34 |
+
You should use `lego set in style of TOK` to trigger the image generation.
|
35 |
+
|
36 |
+
## Download model
|
37 |
+
|
38 |
+
[Download the *.safetensors LoRA](https://huggingface.co/merve/flux-lego-lora-dreambooth/blob/main/pytorch_lora_weights.safetensors) in the Files & versions tab.
|
39 |
+
|
40 |
+
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
41 |
+
|
42 |
+
```py
|
43 |
+
from diffusers import AutoPipelineForText2Image
|
44 |
+
import torch
|
45 |
+
pipeline = AutoPipelineForText2Image.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16).to('cuda')
|
46 |
+
pipeline.load_lora_weights('merve/flux-lego-lora-dreambooth', weight_name='pytorch_lora_weights.safetensors')
|
47 |
+
image = pipeline('lego set in style of TOK, a horse eating a ramen').images[0]
|
48 |
+
```
|
49 |
+
|
50 |
+
For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)
|
51 |
+
|
52 |
+
## License
|
53 |
+
|
54 |
+
Please adhere to the licensing terms as described [here](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md).
|
55 |
+
|