serbdev commited on
Commit
f96aa57
·
verified ·
1 Parent(s): 5325803

Upload folder using huggingface_hub

Browse files
Files changed (38) hide show
  1. README.md +31 -0
  2. dataset.toml +14 -0
  3. sample/test-7_000005_00_20241014154023.png +0 -0
  4. sample/test-7_000010_00_20241014154037.png +0 -0
  5. sample/test-7_000015_00_20241014154050.png +0 -0
  6. sample/test-7_000020_00_20241014154104.png +0 -0
  7. sample/test-7_000025_00_20241014154118.png +0 -0
  8. sample/test-7_000030_00_20241014154131.png +0 -0
  9. sample/test-7_000035_00_20241014154145.png +0 -0
  10. sample/test-7_000040_00_20241014154159.png +0 -0
  11. sample/test-7_000045_00_20241014154212.png +0 -0
  12. sample/test-7_000050_00_20241014154225.png +0 -0
  13. sample/test-7_000055_00_20241014154239.png +0 -0
  14. sample/test-7_000060_00_20241014154252.png +0 -0
  15. sample/test-7_000065_00_20241014154306.png +0 -0
  16. sample/test-7_000070_00_20241014154320.png +0 -0
  17. sample/test-7_000075_00_20241014154333.png +0 -0
  18. sample/test-7_000080_00_20241014154347.png +0 -0
  19. sample/test-7_000085_00_20241014154401.png +0 -0
  20. sample/test-7_000090_00_20241014154415.png +0 -0
  21. sample/test-7_000095_00_20241014154428.png +0 -0
  22. sample/test-7_000100_00_20241014154441.png +0 -0
  23. sample/test-7_000105_00_20241014154455.png +0 -0
  24. sample/test-7_000110_00_20241014154508.png +0 -0
  25. sample/test-7_000115_00_20241014154522.png +0 -0
  26. sample/test-7_000120_00_20241014154536.png +0 -0
  27. sample/test-7_000125_00_20241014154549.png +0 -0
  28. sample/test-7_000130_00_20241014154603.png +0 -0
  29. sample/test-7_000135_00_20241014154616.png +0 -0
  30. sample/test-7_000140_00_20241014154629.png +0 -0
  31. sample/test-7_000145_00_20241014154643.png +0 -0
  32. sample/test-7_000150_00_20241014154657.png +0 -0
  33. sample/test-7_000155_00_20241014154710.png +0 -0
  34. sample/test-7_000160_00_20241014154724.png +0 -0
  35. sample_prompts.txt +1 -0
  36. test-7-000004.safetensors +3 -0
  37. test-7.safetensors +3 -0
  38. 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-7_000160_00_20241014154724.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-7
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-7'
13
+ class_tokens = 't3st'
14
+ num_repeats = 4
sample/test-7_000005_00_20241014154023.png ADDED
sample/test-7_000010_00_20241014154037.png ADDED
sample/test-7_000015_00_20241014154050.png ADDED
sample/test-7_000020_00_20241014154104.png ADDED
sample/test-7_000025_00_20241014154118.png ADDED
sample/test-7_000030_00_20241014154131.png ADDED
sample/test-7_000035_00_20241014154145.png ADDED
sample/test-7_000040_00_20241014154159.png ADDED
sample/test-7_000045_00_20241014154212.png ADDED
sample/test-7_000050_00_20241014154225.png ADDED
sample/test-7_000055_00_20241014154239.png ADDED
sample/test-7_000060_00_20241014154252.png ADDED
sample/test-7_000065_00_20241014154306.png ADDED
sample/test-7_000070_00_20241014154320.png ADDED
sample/test-7_000075_00_20241014154333.png ADDED
sample/test-7_000080_00_20241014154347.png ADDED
sample/test-7_000085_00_20241014154401.png ADDED
sample/test-7_000090_00_20241014154415.png ADDED
sample/test-7_000095_00_20241014154428.png ADDED
sample/test-7_000100_00_20241014154441.png ADDED
sample/test-7_000105_00_20241014154455.png ADDED
sample/test-7_000110_00_20241014154508.png ADDED
sample/test-7_000115_00_20241014154522.png ADDED
sample/test-7_000120_00_20241014154536.png ADDED
sample/test-7_000125_00_20241014154549.png ADDED
sample/test-7_000130_00_20241014154603.png ADDED
sample/test-7_000135_00_20241014154616.png ADDED
sample/test-7_000140_00_20241014154629.png ADDED
sample/test-7_000145_00_20241014154643.png ADDED
sample/test-7_000150_00_20241014154657.png ADDED
sample/test-7_000155_00_20241014154710.png ADDED
sample/test-7_000160_00_20241014154724.png ADDED
sample_prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ t3st
test-7-000004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37c2c85f135685c9444b23492265431f63a1f970237fe3952962f60109e0061d
3
+ size 39759904
test-7.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2b997b87c4f0d9261f5b1fea4c2a97567f570eea567462485f3c88938a79f76
3
+ size 39759904
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-7/sample_prompts.txt" --sample_every_n_steps="5" \
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-7/dataset.toml" \
28
+ --output_dir "/app/fluxgym/outputs/test-7" \
29
+ --output_name test-7 \
30
+ --timestep_sampling shift \
31
+ --discrete_flow_shift 3.1582 \
32
+ --model_prediction_type raw \
33
+ --guidance_scale 1 \
34
+ --loss_type l2 \