serbdev commited on
Commit
9223584
·
verified ·
1 Parent(s): 2ec7b70

Upload folder using huggingface_hub

Browse files
Files changed (46) hide show
  1. README.md +31 -0
  2. dataset.toml +14 -0
  3. sample/test-3_000010_00_20241014005449.png +0 -0
  4. sample/test-3_000020_00_20241014005515.png +0 -0
  5. sample/test-3_000030_00_20241014005542.png +0 -0
  6. sample/test-3_000040_00_20241014005609.png +0 -0
  7. sample/test-3_000050_00_20241014005636.png +0 -0
  8. sample/test-3_000060_00_20241014005703.png +0 -0
  9. sample/test-3_000070_00_20241014005730.png +0 -0
  10. sample/test-3_000080_00_20241014005757.png +0 -0
  11. sample/test-3_000090_00_20241014005824.png +0 -0
  12. sample/test-3_000100_00_20241014005851.png +0 -0
  13. sample/test-3_000110_00_20241014005918.png +0 -0
  14. sample/test-3_000120_00_20241014005945.png +0 -0
  15. sample/test-3_000130_00_20241014010012.png +0 -0
  16. sample/test-3_000140_00_20241014010039.png +0 -0
  17. sample/test-3_000150_00_20241014010107.png +0 -0
  18. sample/test-3_000160_00_20241014010134.png +0 -0
  19. sample/test-3_000170_00_20241014010201.png +0 -0
  20. sample/test-3_000180_00_20241014010228.png +0 -0
  21. sample/test-3_000190_00_20241014010255.png +0 -0
  22. sample/test-3_000200_00_20241014010322.png +0 -0
  23. sample/test-3_000210_00_20241014010349.png +0 -0
  24. sample/test-3_000220_00_20241014010416.png +0 -0
  25. sample/test-3_000230_00_20241014010443.png +0 -0
  26. sample/test-3_000240_00_20241014010510.png +0 -0
  27. sample/test-3_000250_00_20241014010537.png +0 -0
  28. sample/test-3_000260_00_20241014010604.png +0 -0
  29. sample/test-3_000270_00_20241014010631.png +0 -0
  30. sample/test-3_000280_00_20241014010658.png +0 -0
  31. sample/test-3_000290_00_20241014010726.png +0 -0
  32. sample/test-3_000300_00_20241014010753.png +0 -0
  33. sample/test-3_000310_00_20241014010820.png +0 -0
  34. sample/test-3_000320_00_20241014010847.png +0 -0
  35. sample/test-3_000330_00_20241014010914.png +0 -0
  36. sample/test-3_000340_00_20241014010941.png +0 -0
  37. sample/test-3_000350_00_20241014011008.png +0 -0
  38. sample/test-3_000360_00_20241014011035.png +0 -0
  39. sample/test-3_000370_00_20241014011102.png +0 -0
  40. sample/test-3_000380_00_20241014011129.png +0 -0
  41. sample/test-3_000390_00_20241014011156.png +0 -0
  42. sample/test-3_000400_00_20241014011223.png +0 -0
  43. sample_prompts.txt +1 -0
  44. test-3-000004.safetensors +3 -0
  45. test-3.safetensors +3 -0
  46. train.sh +34 -0
README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - text-to-image
4
+ - flux
5
+ - lora
6
+ - diffusers
7
+ - template:sd-lora
8
+ - fluxgym
9
+ widget:
10
+ - output:
11
+ url: sample/test-3_000400_00_20241014011223.png
12
+ text: t3st
13
+ base_model: black-forest-labs/FLUX.1-schnell
14
+ instance_prompt: t3st
15
+ license: apache-2.0
16
+ ---
17
+
18
+ # test-3
19
+
20
+ A Flux LoRA trained on a local computer with [Fluxgym](https://github.com/cocktailpeanut/fluxgym)
21
+
22
+ <Gallery />
23
+
24
+ ## Trigger words
25
+
26
+ You should use `t3st` to trigger the image generation.
27
+
28
+ ## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, Forge, etc.
29
+
30
+ Weights for this model are available in Safetensors format.
31
+
dataset.toml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [general]
2
+ shuffle_caption = false
3
+ caption_extension = '.txt'
4
+ keep_tokens = 1
5
+
6
+ [[datasets]]
7
+ resolution = 256
8
+ batch_size = 1
9
+ keep_tokens = 1
10
+
11
+ [[datasets.subsets]]
12
+ image_dir = '/app/fluxgym/datasets/test-3'
13
+ class_tokens = 't3st'
14
+ num_repeats = 5
sample/test-3_000010_00_20241014005449.png ADDED
sample/test-3_000020_00_20241014005515.png ADDED
sample/test-3_000030_00_20241014005542.png ADDED
sample/test-3_000040_00_20241014005609.png ADDED
sample/test-3_000050_00_20241014005636.png ADDED
sample/test-3_000060_00_20241014005703.png ADDED
sample/test-3_000070_00_20241014005730.png ADDED
sample/test-3_000080_00_20241014005757.png ADDED
sample/test-3_000090_00_20241014005824.png ADDED
sample/test-3_000100_00_20241014005851.png ADDED
sample/test-3_000110_00_20241014005918.png ADDED
sample/test-3_000120_00_20241014005945.png ADDED
sample/test-3_000130_00_20241014010012.png ADDED
sample/test-3_000140_00_20241014010039.png ADDED
sample/test-3_000150_00_20241014010107.png ADDED
sample/test-3_000160_00_20241014010134.png ADDED
sample/test-3_000170_00_20241014010201.png ADDED
sample/test-3_000180_00_20241014010228.png ADDED
sample/test-3_000190_00_20241014010255.png ADDED
sample/test-3_000200_00_20241014010322.png ADDED
sample/test-3_000210_00_20241014010349.png ADDED
sample/test-3_000220_00_20241014010416.png ADDED
sample/test-3_000230_00_20241014010443.png ADDED
sample/test-3_000240_00_20241014010510.png ADDED
sample/test-3_000250_00_20241014010537.png ADDED
sample/test-3_000260_00_20241014010604.png ADDED
sample/test-3_000270_00_20241014010631.png ADDED
sample/test-3_000280_00_20241014010658.png ADDED
sample/test-3_000290_00_20241014010726.png ADDED
sample/test-3_000300_00_20241014010753.png ADDED
sample/test-3_000310_00_20241014010820.png ADDED
sample/test-3_000320_00_20241014010847.png ADDED
sample/test-3_000330_00_20241014010914.png ADDED
sample/test-3_000340_00_20241014010941.png ADDED
sample/test-3_000350_00_20241014011008.png ADDED
sample/test-3_000360_00_20241014011035.png ADDED
sample/test-3_000370_00_20241014011102.png ADDED
sample/test-3_000380_00_20241014011129.png ADDED
sample/test-3_000390_00_20241014011156.png ADDED
sample/test-3_000400_00_20241014011223.png ADDED
sample_prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ t3st
test-3-000004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54c1a746ff776411b67fa4ae6ae1e05b7d9523157a129764c5e8be91da70c7cd
3
+ size 39762608
test-3.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f336264bdbd2fe8073942c8c21d68a8122e1e5899812a8aa321cbaf13126be8
3
+ size 39762608
train.sh ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ accelerate launch \
2
+ --mixed_precision bf16 \
3
+ --num_cpu_threads_per_process 1 \
4
+ sd-scripts/flux_train_network.py \
5
+ --pretrained_model_name_or_path "/app/fluxgym/models/unet/flux1-schnell.safetensors" \
6
+ --clip_l "/app/fluxgym/models/clip/clip_l.safetensors" \
7
+ --t5xxl "/app/fluxgym/models/clip/t5xxl_fp16.safetensors" \
8
+ --ae "/app/fluxgym/models/vae/ae.sft" \
9
+ --cache_latents_to_disk \
10
+ --save_model_as safetensors \
11
+ --sdpa --persistent_data_loader_workers \
12
+ --max_data_loader_n_workers 2 \
13
+ --seed 42 \
14
+ --gradient_checkpointing \
15
+ --mixed_precision bf16 \
16
+ --save_precision bf16 \
17
+ --network_module networks.lora_flux \
18
+ --network_dim 4 \
19
+ --optimizer_type adamw8bit \--sample_prompts="/app/fluxgym/outputs/test-3/sample_prompts.txt" --sample_every_n_steps="10" \
20
+ --learning_rate 8e-4 \
21
+ --cache_text_encoder_outputs \
22
+ --cache_text_encoder_outputs_to_disk \
23
+ --fp8_base \
24
+ --highvram \
25
+ --max_train_epochs 8 \
26
+ --save_every_n_epochs 4 \
27
+ --dataset_config "/app/fluxgym/outputs/test-3/dataset.toml" \
28
+ --output_dir "/app/fluxgym/outputs/test-3" \
29
+ --output_name test-3 \
30
+ --timestep_sampling shift \
31
+ --discrete_flow_shift 3.1582 \
32
+ --model_prediction_type raw \
33
+ --guidance_scale 1 \
34
+ --loss_type l2 \