Update model card with proper FLUX DreamBooth LoRA details
Browse files
README.md
CHANGED
|
@@ -1,121 +1,128 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model: black-forest-labs/FLUX.1-dev
|
| 3 |
-
library_name: diffusers
|
| 4 |
-
license: other
|
| 5 |
-
license_name: flux-1-dev-non-commercial-license
|
| 6 |
-
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
| 7 |
-
inference: true
|
| 8 |
-
tags:
|
| 9 |
-
- flux
|
| 10 |
-
- flux-diffusers
|
| 11 |
-
- lora
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
-
|
| 15 |
-
-
|
| 16 |
-
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
- text: "a huggy_style_v1 mascot wearing
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
##
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
``
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
pipe.
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
|
| 88 |
-
|
|
| 89 |
-
|
|
| 90 |
-
|
|
| 91 |
-
|
|
| 92 |
-
|
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
|
| 102 |
-
|
|
| 103 |
-
|
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
##
|
| 120 |
-
|
| 121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: black-forest-labs/FLUX.1-dev
|
| 3 |
+
library_name: diffusers
|
| 4 |
+
license: other
|
| 5 |
+
license_name: flux-1-dev-non-commercial-license
|
| 6 |
+
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
| 7 |
+
inference: true
|
| 8 |
+
tags:
|
| 9 |
+
- flux
|
| 10 |
+
- flux-diffusers
|
| 11 |
+
- lora
|
| 12 |
+
- text-to-image
|
| 13 |
+
- diffusers-training
|
| 14 |
+
- dreambooth
|
| 15 |
+
- dreambooth-lora
|
| 16 |
+
- character
|
| 17 |
+
- template:sd-lora
|
| 18 |
+
widget:
|
| 19 |
+
- text: "a huggy_style_v1 mascot wearing a pirate hat, waving, happy"
|
| 20 |
+
output:
|
| 21 |
+
url: image_0.png
|
| 22 |
+
- text: "a huggy_style_v1 mascot wearing a chef hat, holding a pizza"
|
| 23 |
+
output:
|
| 24 |
+
url: image_1.png
|
| 25 |
+
- text: "a huggy_style_v1 mascot in a spacesuit, floating in space"
|
| 26 |
+
output:
|
| 27 |
+
url: image_2.png
|
| 28 |
+
- text: "a huggy_style_v1 mascot sitting on a stack of books, reading"
|
| 29 |
+
output:
|
| 30 |
+
url: image_3.png
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
# Huggy Style v1 - FLUX DreamBooth LoRA
|
| 34 |
+
|
| 35 |
+
A LoRA adapter for [FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev) trained with DreamBooth to generate **Huggy** — the HuggingFace mascot character.
|
| 36 |
+
|
| 37 |
+
## Character Description
|
| 38 |
+
|
| 39 |
+
Huggy is a **yellow circular character** with:
|
| 40 |
+
- Round body (no arms, legs, or feet)
|
| 41 |
+
- Two floating hands
|
| 42 |
+
- Orange outlines (no dark black outlines)
|
| 43 |
+
- Clean flat vector art style with edge shadows
|
| 44 |
+
- Expressive face with various emotions
|
| 45 |
+
|
| 46 |
+
## Trigger Word
|
| 47 |
+
|
| 48 |
+
Use **`huggy_style_v1`** in your prompts to activate the character.
|
| 49 |
+
|
| 50 |
+
## Usage
|
| 51 |
+
|
| 52 |
+
```python
|
| 53 |
+
import torch
|
| 54 |
+
from diffusers import FluxPipeline
|
| 55 |
+
|
| 56 |
+
pipe = FluxPipeline.from_pretrained(
|
| 57 |
+
"black-forest-labs/FLUX.1-dev",
|
| 58 |
+
torch_dtype=torch.bfloat16,
|
| 59 |
+
)
|
| 60 |
+
pipe.enable_model_cpu_offload()
|
| 61 |
+
|
| 62 |
+
# Load LoRA
|
| 63 |
+
pipe.load_lora_weights("Chunte/huggy-style-v1-lora")
|
| 64 |
+
|
| 65 |
+
image = pipe(
|
| 66 |
+
prompt="a huggy_style_v1 mascot wearing a pirate hat, waving, happy",
|
| 67 |
+
num_inference_steps=28,
|
| 68 |
+
guidance_scale=3.5,
|
| 69 |
+
width=768,
|
| 70 |
+
height=768,
|
| 71 |
+
generator=torch.Generator("cpu").manual_seed(42),
|
| 72 |
+
).images[0]
|
| 73 |
+
image.save("huggy.png")
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
## Prompt Tips
|
| 77 |
+
|
| 78 |
+
- Always include `huggy_style_v1` as the trigger word
|
| 79 |
+
- Describe **what varies** — costumes, poses, expressions, props
|
| 80 |
+
- Don't describe the character's base appearance (yellow, circular, etc.) — the LoRA already knows this
|
| 81 |
+
- Example: `a huggy_style_v1 mascot wearing a santa hat, holding a gift, smiling`
|
| 82 |
+
|
| 83 |
+
## Checkpoints
|
| 84 |
+
|
| 85 |
+
Multiple checkpoints are available if the final weights are overfitting:
|
| 86 |
+
|
| 87 |
+
| Checkpoint | Use Case |
|
| 88 |
+
|-----------|----------|
|
| 89 |
+
| `checkpoint-500` | Early training — more creative, less accurate character |
|
| 90 |
+
| `checkpoint-1000` | Moderate — good balance for some use cases |
|
| 91 |
+
| `checkpoint-1500` | Strong character identity with good generalization |
|
| 92 |
+
| **final (default)** | **Strongest character identity** (2000 steps) |
|
| 93 |
+
|
| 94 |
+
Load a specific checkpoint:
|
| 95 |
+
```python
|
| 96 |
+
pipe.load_lora_weights("Chunte/huggy-style-v1-lora", subfolder="checkpoint-1000")
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
## Training Details
|
| 100 |
+
|
| 101 |
+
| Parameter | Value |
|
| 102 |
+
|-----------|-------|
|
| 103 |
+
| Base model | FLUX.1-dev |
|
| 104 |
+
| Method | DreamBooth LoRA |
|
| 105 |
+
| Training script | `train_dreambooth_lora_flux.py` (diffusers v0.37.0) |
|
| 106 |
+
| Dataset | 72 hand-captioned images (1024x1024, white background) |
|
| 107 |
+
| Resolution | 768 |
|
| 108 |
+
| LoRA rank | 32 |
|
| 109 |
+
| Learning rate | 1e-4 (constant scheduler) |
|
| 110 |
+
| Warmup steps | 100 |
|
| 111 |
+
| Training steps | 2000 |
|
| 112 |
+
| Batch size | 1 (gradient accumulation: 4, effective batch: 4) |
|
| 113 |
+
| Mixed precision | bf16 |
|
| 114 |
+
| Guidance scale | 1 (recommended for FLUX training) |
|
| 115 |
+
| Gradient checkpointing | Enabled |
|
| 116 |
+
| Hardware | NVIDIA L40S (48GB VRAM) |
|
| 117 |
+
| Final loss | 0.021 |
|
| 118 |
+
|
| 119 |
+
## Sample Images
|
| 120 |
+
|
| 121 |
+

|
| 122 |
+

|
| 123 |
+

|
| 124 |
+

|
| 125 |
+
|
| 126 |
+
## License
|
| 127 |
+
|
| 128 |
+
This LoRA adapter inherits the [FLUX.1-dev Non-Commercial License](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md).
|