diff --git a/.gitattributes b/.gitattributes index 0772f9def161f485e08f1dbfce8f24f0294486f0..3df0026bc1deec2d51140ea0c54dd786e1f78241 100644 --- a/.gitattributes +++ b/.gitattributes @@ -48,3 +48,19 @@ olivia-style-flux-2_copy/olivia-style-flux-2_copy/samples/1764159895853__0000052 olivia-style-flux-2_copy/olivia-style-flux-2_copy/samples/1764162096061__000005500_0.jpg filter=lfs diff=lfs merge=lfs -text olivia-style-flux-2_copy/olivia-style-flux-2_copy/samples/1764164275618__000005750_0.jpg filter=lfs diff=lfs merge=lfs -text olivia-style-flux-2_copy/olivia-style-flux-2_copy/samples/1764164431289__000005750_3.jpg filter=lfs diff=lfs merge=lfs -text +fia_flux_2/samples/1764176763227__000000000_0.jpg filter=lfs diff=lfs merge=lfs -text +fia_flux_2/samples/1764178014763__000000100_0.jpg filter=lfs diff=lfs merge=lfs -text +fia_flux_2/samples/1764179242577__000000200_0.jpg filter=lfs diff=lfs merge=lfs -text +fia_flux_2/samples/1764180484905__000000300_0.jpg filter=lfs diff=lfs merge=lfs -text +fia_flux_2/samples/1764181726604__000000400_0.jpg filter=lfs diff=lfs merge=lfs -text +fia_flux_2/samples/1764183004778__000000500_0.jpg filter=lfs diff=lfs merge=lfs -text +fia_flux_2/samples/1764184250118__000000600_0.jpg filter=lfs diff=lfs merge=lfs -text +fia_flux_2/samples/1764185484410__000000700_0.jpg filter=lfs diff=lfs merge=lfs -text +fia_flux_2/samples/1764186709632__000000800_0.jpg filter=lfs diff=lfs merge=lfs -text +fia_flux_2/samples/1764187944969__000000900_0.jpg filter=lfs diff=lfs merge=lfs -text +fia_flux_2/samples/1764189184439__000001000_0.jpg filter=lfs diff=lfs merge=lfs -text +fia_flux_2/samples/1764189235489__000001000_1.jpg filter=lfs diff=lfs merge=lfs -text +fia_flux_2/samples/1764190422621__000001100_0.jpg filter=lfs diff=lfs merge=lfs -text +fia_flux_2/samples/1764190473666__000001100_1.jpg filter=lfs diff=lfs merge=lfs -text +fia_flux_2/samples/1764191655600__000001200_0.jpg filter=lfs diff=lfs merge=lfs -text +fia_flux_2/samples/1764191706642__000001200_1.jpg filter=lfs diff=lfs merge=lfs -text diff --git a/fia_flux_2/config.yaml b/fia_flux_2/config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f2701b28c325d8078d7475b381de34c4df071497 --- /dev/null +++ b/fia_flux_2/config.yaml @@ -0,0 +1,112 @@ +job: extension +config: + name: fia_flux_2 + process: + - type: diffusion_trainer + training_folder: /workspace/ai-toolkit/output + sqlite_db_path: /workspace/ai-toolkit/aitk_db.db + device: cuda + trigger_word: null + performance_log_every: 10 + network: + type: lora + linear: 32 + linear_alpha: 32 + conv: 16 + conv_alpha: 16 + lokr_full_rank: true + lokr_factor: -1 + network_kwargs: + ignore_if_contains: [] + save: + dtype: bf16 + save_every: 60 + max_step_saves_to_keep: 100 + save_format: safetensors + push_to_hub: false + datasets: + - folder_path: /workspace/ai-toolkit/datasets/fia_dataset + mask_path: null + mask_min_value: 0.1 + default_caption: '' + caption_ext: txt + caption_dropout_rate: 0.05 + cache_latents_to_disk: false + is_reg: false + network_weight: 1 + resolution: + - 1024 + - 1280 + - 1536 + controls: [] + shrink_video_to_frames: true + num_frames: 1 + do_i2v: true + flip_x: false + flip_y: false + control_path_1: null + control_path_2: null + control_path_3: null + train: + batch_size: 1 + bypass_guidance_embedding: false + steps: 1200 + gradient_accumulation: 1 + train_unet: true + train_text_encoder: false + gradient_checkpointing: true + noise_scheduler: flowmatch + optimizer: adamw8bit + timestep_type: weighted + content_or_style: balanced + optimizer_params: + weight_decay: 0.0001 + unload_text_encoder: false + cache_text_embeddings: false + lr: 5.0e-05 + ema_config: + use_ema: false + ema_decay: 0.99 + skip_first_sample: false + force_first_sample: false + disable_sampling: false + dtype: bf16 + diff_output_preservation: false + diff_output_preservation_multiplier: 1 + diff_output_preservation_class: person + switch_boundary_every: 1 + loss_type: mse + model: + name_or_path: black-forest-labs/FLUX.2-dev + quantize: true + qtype: qfloat8 + quantize_te: true + qtype_te: qfloat8 + arch: flux2 + low_vram: false + model_kwargs: + match_target_res: false + layer_offloading: false + layer_offloading_text_encoder_percent: 1 + layer_offloading_transformer_percent: 1 + sample: + sampler: flowmatch + sample_every: 100 + width: 1024 + height: 1024 + samples: + - prompt: fia, a young woman in a street with high waist blue jeans + - prompt: fia, a young woman sitting on a couch with blonde hair + - prompt: fia, standing on a balcony, overlooking the sunset + - prompt: fia, reading a book in a sunlit bedroom, soft natural light, white + curtains blowing in the breeze + neg: '' + seed: 42 + walk_seed: true + guidance_scale: 4 + sample_steps: 25 + num_frames: 1 + fps: 1 +meta: + name: fia_flux_2 + version: '1.0' diff --git a/fia_flux_2/fia_flux_2.safetensors b/fia_flux_2/fia_flux_2.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..a5ea77c2f121be15ba293cdfa1e81c4bcfc7e5f6 --- /dev/null +++ b/fia_flux_2/fia_flux_2.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b88003ce6caad359d50eaf39b91f32db227ff67121e5c68925997f7d0c1f1e3d +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000000060.safetensors b/fia_flux_2/fia_flux_2_000000060.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..116dd08671a9166804af11481be151ab40163e73 --- /dev/null +++ b/fia_flux_2/fia_flux_2_000000060.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f71c4f7cb6c7615a522830ab75a56783114bd9b9c1d44750364c1b685178820 +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000000120.safetensors b/fia_flux_2/fia_flux_2_000000120.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..dec77da1a01f87993c045dbdf0500e44d2a0c194 --- /dev/null +++ b/fia_flux_2/fia_flux_2_000000120.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc1028a7d7ba56fe3711802263d7523878a7698cf353f829aa48e08850062996 +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000000180.safetensors b/fia_flux_2/fia_flux_2_000000180.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..68f2fab7e50de808c5713a95223e39bd8bf15894 --- /dev/null +++ b/fia_flux_2/fia_flux_2_000000180.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:508e6c65f6103aca81db16b944883d859ba0f6a45aeb3f8338bae7f725586933 +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000000240.safetensors b/fia_flux_2/fia_flux_2_000000240.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..f9eac2e296055da031c36470209abcb097f65951 --- /dev/null +++ b/fia_flux_2/fia_flux_2_000000240.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0828ab20a480ba3402212799468aa309302ff728f04ba55ee0dd91d308097d73 +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000000300.safetensors b/fia_flux_2/fia_flux_2_000000300.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..7ae196680ed5463b2c1b80edef21db86975971cf --- /dev/null +++ b/fia_flux_2/fia_flux_2_000000300.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6e4eb4d13bce75b63bfefab51cc8c7f155474ec25303d6b1298d09ca50c0674 +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000000360.safetensors b/fia_flux_2/fia_flux_2_000000360.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..4dd6142e7fdf11e09758aab9833609b00c82cd3c --- /dev/null +++ b/fia_flux_2/fia_flux_2_000000360.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2749f05f141f39fc2f5381a30f0aa44efb81f22166f1fad0da81fdcafb8ea8fb +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000000420.safetensors b/fia_flux_2/fia_flux_2_000000420.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..e75aedf3d0a9b865d4970bd30d7005a08e70498d --- /dev/null +++ b/fia_flux_2/fia_flux_2_000000420.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:42057c22c2f2b83f4c5a0405acb6f5a01f620ff88dffd8008e5c86e720006518 +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000000480.safetensors b/fia_flux_2/fia_flux_2_000000480.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..1bb95f2a100eb1536e284094fee94b430e0fe90d --- /dev/null +++ b/fia_flux_2/fia_flux_2_000000480.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:221769d33f4fa14aa48e34c5f11111f2d98854739dab0a5f01c4bcae057d89bd +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000000540.safetensors b/fia_flux_2/fia_flux_2_000000540.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..5ffe3a3556d0109cb941a50a7f4b97ee1bc5b93b --- /dev/null +++ b/fia_flux_2/fia_flux_2_000000540.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8433321396ecb1aa35af63a6985156eda5a79995dfcfad414bf69ad1ff04c8dc +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000000600.safetensors b/fia_flux_2/fia_flux_2_000000600.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..892ff2246076a2b0402cbb546328a905e107f187 --- /dev/null +++ b/fia_flux_2/fia_flux_2_000000600.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c8795fcd83b8fc9ee9f4f86763f6d0cfd2e4bd7b7a12ed64b14161b14aeeca2 +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000000660.safetensors b/fia_flux_2/fia_flux_2_000000660.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..93dc291c6c58357c9c744cf356adc45ab3a75486 --- /dev/null +++ b/fia_flux_2/fia_flux_2_000000660.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b1dacce72a4ed6be91e416799905e25314dc11004f098619f87b6ce7ccbeac33 +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000000720.safetensors b/fia_flux_2/fia_flux_2_000000720.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..109faebdbdb7857cf667ade80b23db20e9c37935 --- /dev/null +++ b/fia_flux_2/fia_flux_2_000000720.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d282edacb1ea10b19f8a58a0aacdaa327903d7868c14f7ed16ea7caea9768472 +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000000780.safetensors b/fia_flux_2/fia_flux_2_000000780.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..ba622556d383d1cd6bd7c9f7cea299b44e21dbe5 --- /dev/null +++ b/fia_flux_2/fia_flux_2_000000780.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:394e16f0294df36bd8d08a28f9c98de3860c82f2a28a4b70085dc251ad39fa7f +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000000840.safetensors b/fia_flux_2/fia_flux_2_000000840.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..eb1c1a120c36dd6e87e7a6fc2fc775f6803a4dfa --- /dev/null +++ b/fia_flux_2/fia_flux_2_000000840.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:81c7664e32a70361cb6927f7080a2c48d0d4188dfc011815e187a3214be8d810 +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000000900.safetensors b/fia_flux_2/fia_flux_2_000000900.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..e5e54102e30c9c49c8cb9f54ebd3ddebe19af5d3 --- /dev/null +++ b/fia_flux_2/fia_flux_2_000000900.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34ff34929c132cf52cfb662991732f382c0a98cc44fd40c4004329a9baecafbe +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000000960.safetensors b/fia_flux_2/fia_flux_2_000000960.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..5042599ad152003d318fdb7c01ca4c68df590477 --- /dev/null +++ b/fia_flux_2/fia_flux_2_000000960.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f5e20feaf5609037d0c9f4742e81e8131f9189e3e238855368a98de04d9e5239 +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000001020.safetensors b/fia_flux_2/fia_flux_2_000001020.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..1699b218b958414241675575faae4ec4f477acee --- /dev/null +++ b/fia_flux_2/fia_flux_2_000001020.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16b4e5f4a5df94ee6dcbf1858e275831e4caa7d78d626bd7e0d8973d0b4c112a +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000001080.safetensors b/fia_flux_2/fia_flux_2_000001080.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..bf000b7b96652f0580219d701fd718e7b660f314 --- /dev/null +++ b/fia_flux_2/fia_flux_2_000001080.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba10f65203e0cbf401827828e8fe4ab53010d71893fb1ae5679b655da599b0bf +size 390112152 diff --git a/fia_flux_2/fia_flux_2_000001140.safetensors b/fia_flux_2/fia_flux_2_000001140.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..3528faa70ffc0f90b286f5e8886c4eee70aa7136 --- /dev/null +++ b/fia_flux_2/fia_flux_2_000001140.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0138b4be6101e6f2524bfbc4f3446147a24497fd312ee64d34e3c0c3bde1d022 +size 390112152 diff --git a/fia_flux_2/log.txt b/fia_flux_2/log.txt new file mode 100644 index 0000000000000000000000000000000000000000..c17b78e75ab537da1493ff335a2cf1bb753a5fb4 --- /dev/null +++ b/fia_flux_2/log.txt @@ -0,0 +1,404 @@ +Running 1 job +{ + "type": "diffusion_trainer", + "training_folder": "/workspace/ai-toolkit/output", + "sqlite_db_path": "/workspace/ai-toolkit/aitk_db.db", + "device": "cuda", + "trigger_word": null, + "performance_log_every": 10, + "network": { + "type": "lora", + "linear": 32, + "linear_alpha": 32, + "conv": 16, + "conv_alpha": 16, + "lokr_full_rank": true, + "lokr_factor": -1, + "network_kwargs": { + "ignore_if_contains": [] + } + }, + "save": { + "dtype": "bf16", + "save_every": 60, + "max_step_saves_to_keep": 100, + "save_format": "safetensors", + "push_to_hub": false + }, + "datasets": [ + { + "folder_path": "/workspace/ai-toolkit/datasets/fia_dataset", + "mask_path": null, + "mask_min_value": 0.1, + "default_caption": "", + "caption_ext": "txt", + "caption_dropout_rate": 0.05, + "cache_latents_to_disk": false, + "is_reg": false, + "network_weight": 1, + "resolution": [ + 1024, + 1280, + 1536 + ], + "controls": [], + "shrink_video_to_frames": true, + "num_frames": 1, + "do_i2v": true, + "flip_x": false, + "flip_y": false, + "control_path_1": null, + "control_path_2": null, + "control_path_3": null + } + ], + "train": { + "batch_size": 1, + "bypass_guidance_embedding": false, + "steps": 1200, + "gradient_accumulation": 1, + "train_unet": true, + "train_text_encoder": false, + "gradient_checkpointing": true, + "noise_scheduler": "flowmatch", + "optimizer": "adamw8bit", + "timestep_type": "weighted", + "content_or_style": "balanced", + "optimizer_params": { + "weight_decay": 0.0001 + }, + "unload_text_encoder": false, + "cache_text_embeddings": false, + "lr": 5e-05, + "ema_config": { + "use_ema": false, + "ema_decay": 0.99 + }, + "skip_first_sample": false, + "force_first_sample": false, + "disable_sampling": false, + "dtype": "bf16", + "diff_output_preservation": false, + "diff_output_preservation_multiplier": 1, + "diff_output_preservation_class": "person", + "switch_boundary_every": 1, + "loss_type": "mse" + }, + "model": { + "name_or_path": "black-forest-labs/FLUX.2-dev", + "quantize": true, + "qtype": "qfloat8", + "quantize_te": true, + "qtype_te": "qfloat8", + "arch": "flux2", + "low_vram": false, + "model_kwargs": { + "match_target_res": false + }, + "layer_offloading": false, + "layer_offloading_text_encoder_percent": 1, + "layer_offloading_transformer_percent": 1 + }, + "sample": { + "sampler": "flowmatch", + "sample_every": 100, + "width": 1024, + "height": 1024, + "samples": [ + { + "prompt": "fia, a young woman in a street with high waist blue jeans" + }, + { + "prompt": "fia, a young woman sitting on a couch with blonde hair" + }, + { + "prompt": "fia, standing on a balcony, overlooking the sunset" + }, + { + "prompt": "fia, reading a book in a sunlit bedroom, soft natural light, white curtains blowing in the breeze" + } + ], + "neg": "", + "seed": 42, + "walk_seed": true, + "guidance_scale": 4, + "sample_steps": 25, + "num_frames": 1, + "fps": 1 + } +} +Using SQLite database at /workspace/ai-toolkit/aitk_db.db +Job ID: "e94293f6-a959-4cea-b00d-0798b58471d1" + +############################################# +# Running job: fia_flux_2 +############################################# + + +Running 1 process +Loading Flux2 model +Loading transformer +Quantizing Transformer + - quantizing 56 transformer blocks + 0%| | 0/56 [00:00