|
--- |
|
job: extension |
|
config: |
|
|
|
name: "my_first_flex_redux_finetune_v1" |
|
process: |
|
- type: 'sd_trainer' |
|
|
|
training_folder: "output" |
|
|
|
|
|
device: cuda:0 |
|
adapter: |
|
type: "redux" |
|
|
|
name_or_path: '/local/path/to/redux_adapter_to_finetune.safetensors' |
|
|
|
|
|
image_encoder_path: 'google/siglip2-so400m-patch16-512' |
|
|
|
image_encoder_arch: 'siglip2' |
|
|
|
test_img_path: |
|
- "/path/to/x_01.jpg" |
|
- "/path/to/x_02.jpg" |
|
- "/path/to/x_03.jpg" |
|
- "/path/to/x_04.jpg" |
|
- "/path/to/x_05.jpg" |
|
- "/path/to/x_06.jpg" |
|
- "/path/to/x_07.jpg" |
|
- "/path/to/x_08.jpg" |
|
- "/path/to/x_09.jpg" |
|
- "/path/to/x_10.jpg" |
|
clip_layer: 'last_hidden_state' |
|
train: true |
|
save: |
|
dtype: bf16 |
|
save_every: 250 |
|
max_step_saves_to_keep: 4 |
|
datasets: |
|
|
|
|
|
|
|
|
|
|
|
- folder_path: "/path/to/images/folder" |
|
|
|
|
|
clip_image_path: "/path/to/control/images/folder" |
|
caption_ext: "txt" |
|
caption_dropout_rate: 0.05 |
|
resolution: [ 512, 768, 1024 ] |
|
train: |
|
|
|
|
|
batch_size: 3 |
|
gradient_accumulation: 2 |
|
|
|
|
|
unload_text_encoder: true |
|
|
|
loss_type: "mse" |
|
train_unet: true |
|
train_text_encoder: false |
|
steps: 4000000 |
|
content_or_style: balanced |
|
gradient_checkpointing: true |
|
noise_scheduler: "flowmatch" |
|
timestep_type: "flux_shift" |
|
optimizer: "adamw8bit" |
|
lr: 1e-4 |
|
|
|
|
|
bypass_guidance_embedding: true |
|
|
|
dtype: bf16 |
|
ema_config: |
|
use_ema: true |
|
ema_decay: 0.99 |
|
model: |
|
name_or_path: "ostris/Flex.1-alpha" |
|
is_flux: true |
|
quantize: true |
|
text_encoder_bits: 8 |
|
sample: |
|
sampler: "flowmatch" |
|
sample_every: 250 |
|
width: 1024 |
|
height: 1024 |
|
|
|
prompts: |
|
- "woman with red hair, playing chess at the park, bomb going off in the background" |
|
- "a woman holding a coffee cup, in a beanie, sitting at a cafe" |
|
- "a horse is a DJ at a night club, fish eye lens, smoke machine, lazer lights, holding a martini" |
|
- "a man showing off his cool new t shirt at the beach, a shark is jumping out of the water in the background" |
|
- "a bear building a log cabin in the snow covered mountains" |
|
- "" |
|
- "" |
|
- "" |
|
- "" |
|
- "" |
|
neg: "" |
|
seed: 42 |
|
walk_seed: true |
|
guidance_scale: 4 |
|
sample_steps: 25 |
|
network_multiplier: 1.0 |
|
|
|
|
|
meta: |
|
name: "[name]" |
|
version: '1.0' |
|
|