Update README.md
Browse files
README.md
CHANGED
@@ -63,6 +63,8 @@ widget:
|
|
63 |
base_model: black-forest-labs/FLUX.1-schnell
|
64 |
instance_prompt: pvc figure, nendoroid, figma
|
65 |
license: apache-2.0
|
|
|
|
|
66 |
---
|
67 |
# FLUX.1 schnell PVC style
|
68 |
|
@@ -70,7 +72,9 @@ license: apache-2.0
|
|
70 |
|
71 |
## Model description
|
72 |
|
73 |
-
PVC figure style LoRA for [FLUX.1-schnell](https
|
|
|
|
|
74 |
|
75 |
|
76 |
## Trigger words
|
@@ -81,9 +85,121 @@ You should use `nendoroid` to trigger the image generation.
|
|
81 |
|
82 |
You should use `figma` to trigger the image generation.
|
83 |
|
|
|
|
|
|
|
84 |
|
85 |
## Download model
|
86 |
|
87 |
Weights for this model are available in Safetensors format.
|
88 |
|
89 |
[Download](/p1atdev/flux.1-schnell-pvc-style-lora/tree/main) them in the Files & versions tab.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
base_model: black-forest-labs/FLUX.1-schnell
|
64 |
instance_prompt: pvc figure, nendoroid, figma
|
65 |
license: apache-2.0
|
66 |
+
datasets:
|
67 |
+
- p1atdev/pvc
|
68 |
---
|
69 |
# FLUX.1 schnell PVC style
|
70 |
|
|
|
72 |
|
73 |
## Model description
|
74 |
|
75 |
+
PVC figure style LoRA for [FLUX.1-schnell](https://huggingface.co/black-forest-labs/FLUX.1-schnell),
|
76 |
+
trained on [FLUX.1-schnell](https://huggingface.co/black-forest-labs/FLUX.1-schnell)
|
77 |
+
with the [training adapter](ostris/FLUX.1-schnell-training-adapter) using [ostris/ai-toolkit](https://huggingface.co/ostris/FLUX.1-schnell-training-adapter).
|
78 |
|
79 |
|
80 |
## Trigger words
|
|
|
85 |
|
86 |
You should use `figma` to trigger the image generation.
|
87 |
|
88 |
+
### Prompt guide
|
89 |
+
|
90 |
+
This LoRA was trained with danbooru tags, but maybe not of all danbooru tags will work. Please consider to use natural language to align.
|
91 |
|
92 |
## Download model
|
93 |
|
94 |
Weights for this model are available in Safetensors format.
|
95 |
|
96 |
[Download](/p1atdev/flux.1-schnell-pvc-style-lora/tree/main) them in the Files & versions tab.
|
97 |
+
|
98 |
+
## Training config
|
99 |
+
|
100 |
+
WandB log: https://wandb.ai/p1atdev/flux_lora_pvc_schnell_1
|
101 |
+
|
102 |
+
TL;DR:
|
103 |
+
|
104 |
+
- `learning_rate` `1e-4` for `constant` with `AdamW8bit` (default)
|
105 |
+
- used about 2500 images
|
106 |
+
- `batch_size` `4`, `gradient_accumulation_steps` `1`
|
107 |
+
- took about 32GB VRAM
|
108 |
+
- LoRA config (default)
|
109 |
+
- `linear`: `16`
|
110 |
+
- `linear_alpha`: `16`
|
111 |
+
- base model: [black-forest-labs/FLUX.1-schnell](https://huggingface.co/black-forest-labs/FLUX.1-schnell)
|
112 |
+
- assistant lora: [ostris/FLUX.1-schnell-training-adapter](https://huggingface.co/ostris/FLUX.1-schnell-training-adapter)
|
113 |
+
- trained for 10,000 steps but finally used the merge of checkpoint at 7250 and 7500 for 1:1.
|
114 |
+
- GPU: A6000 x1 (VRAM 48GB)
|
115 |
+
|
116 |
+
<details><summary>Full config.yaml</summary>
|
117 |
+
|
118 |
+
```yaml
|
119 |
+
job: extension
|
120 |
+
config:
|
121 |
+
name: flux_lora_pvc_schnell_1
|
122 |
+
process:
|
123 |
+
- type: sd_trainer
|
124 |
+
training_folder: output
|
125 |
+
device: cuda:3
|
126 |
+
network:
|
127 |
+
type: lora
|
128 |
+
linear: 16
|
129 |
+
linear_alpha: 16
|
130 |
+
save:
|
131 |
+
dtype: bfloat16
|
132 |
+
save_every: 250
|
133 |
+
max_step_saves_to_keep: 10
|
134 |
+
datasets:
|
135 |
+
- folder_path: /workspace/ai-toolkit/dataset/pvc
|
136 |
+
caption_ext: txt
|
137 |
+
caption_dropout_rate: 0.01
|
138 |
+
shuffle_tokens: true
|
139 |
+
cache_latents_to_disk: true
|
140 |
+
resolution:
|
141 |
+
- 768
|
142 |
+
- 1024
|
143 |
+
train:
|
144 |
+
batch_size: 4
|
145 |
+
steps: 10000
|
146 |
+
gradient_accumulation_steps: 1
|
147 |
+
train_unet: true
|
148 |
+
train_text_encoder: false
|
149 |
+
gradient_checkpointing: true
|
150 |
+
noise_scheduler: flowmatch
|
151 |
+
optimizer: adamw8bit
|
152 |
+
lr: 0.0001
|
153 |
+
ema_config:
|
154 |
+
use_ema: true
|
155 |
+
ema_decay: 0.99
|
156 |
+
dtype: bf16
|
157 |
+
model:
|
158 |
+
name_or_path: black-forest-labs/FLUX.1-schnell
|
159 |
+
assistant_lora_path: ostris/FLUX.1-schnell-training-adapter
|
160 |
+
is_flux: true
|
161 |
+
quantize: true
|
162 |
+
sample:
|
163 |
+
sampler: flowmatch
|
164 |
+
sample_every: 250
|
165 |
+
width: 832
|
166 |
+
height: 1152
|
167 |
+
prompts:
|
168 |
+
- 1girl, solo, blue hair, cat ears, parted bangs, long hair, looking at viewer,
|
169 |
+
white dress shirt, rainy, wariza, sitting
|
170 |
+
- 1girl, solo, full body, gloves, groin, hair between eyes, hair ornament, head
|
171 |
+
tilt, holding, holding staff, horns, long hair, looking at viewer, maid headdress,
|
172 |
+
mole, mole under eye, navel, parted lips, purple eyes, purple hair, purple
|
173 |
+
theme, shawl, shorts, single horn, staff, standing, thighhighs, twintails,
|
174 |
+
white footwear, white gloves, white thighhighs
|
175 |
+
- 1girl, aqua eyes, baseball cap, blonde hair, closed mouth, earrings, green
|
176 |
+
background, hat, hoop earrings, jewelry, looking at viewer, shirt, short hair,
|
177 |
+
solo, upper body, yellow shirt,
|
178 |
+
- 1girl, bangs, bare shoulders, beret, black hair, black shorts, blue hair,
|
179 |
+
bracelet, breasts, buttons, colored inner hair, double-breasted, eyewear removed,
|
180 |
+
green headwear, green jacket, grey eyes, grey sky, hat, jacket, jewelry, long
|
181 |
+
hair, looking at viewer, multicolored hair, neck ring, o-ring, off shoulder,
|
182 |
+
rain, round eyewear, shorts, sidelocks, small breasts, solo, sunglasses, wavy
|
183 |
+
hair, wet, zipper,
|
184 |
+
- 1girl, brown hair, green eyes, colorful, autumn, cumulonimbus clouds, lighting,
|
185 |
+
blue sky, falling leaves, garden
|
186 |
+
- 1girl, bangs, black wings, blush, choker, collarbone, feathered wings, hair
|
187 |
+
between eyes, halo, hand on hip, hat, head wings, long hair, long sleeves,
|
188 |
+
looking at viewer, pink eyes, pink hair, pleated skirt, school hat, school
|
189 |
+
uniform, serafuku, sidelocks, simple background, skirt, solo, twintails, wavy
|
190 |
+
mouth, white background, wings, waifu,
|
191 |
+
neg: ''
|
192 |
+
seed: 42
|
193 |
+
walk_seed: true
|
194 |
+
guidance_scale: 1
|
195 |
+
sample_steps: 4
|
196 |
+
logging:
|
197 |
+
use_wandb: true
|
198 |
+
project_name: flux_lora_pvc_schnell_1
|
199 |
+
run_name: run-1
|
200 |
+
meta:
|
201 |
+
name: flux_lora_schnell_pvc
|
202 |
+
version: '1.0'
|
203 |
+
```
|
204 |
+
|
205 |
+
</details>
|