exploer commited on
Commit
d9233d9
·
verified ·
1 Parent(s): 70f306a

Upload folder using huggingface_hub

Browse files
Files changed (41) hide show
  1. README.md +37 -0
  2. dataset.toml +14 -0
  3. sample/tomasbily_000075_00_20241020173724.png +0 -0
  4. sample/tomasbily_000075_00_20241020181201.png +0 -0
  5. sample/tomasbily_000075_01_20241020173737.png +0 -0
  6. sample/tomasbily_000075_01_20241020181215.png +0 -0
  7. sample/tomasbily_000150_00_20241020174043.png +0 -0
  8. sample/tomasbily_000150_00_20241020181523.png +0 -0
  9. sample/tomasbily_000150_01_20241020174057.png +0 -0
  10. sample/tomasbily_000150_01_20241020181536.png +0 -0
  11. sample/tomasbily_000225_00_20241020174403.png +0 -0
  12. sample/tomasbily_000225_00_20241020181843.png +0 -0
  13. sample/tomasbily_000225_01_20241020174416.png +0 -0
  14. sample/tomasbily_000225_01_20241020181856.png +0 -0
  15. sample/tomasbily_000300_00_20241020174724.png +0 -0
  16. sample/tomasbily_000300_00_20241020182203.png +0 -0
  17. sample/tomasbily_000300_01_20241020174737.png +0 -0
  18. sample/tomasbily_000300_01_20241020182217.png +0 -0
  19. sample/tomasbily_000375_00_20241020175043.png +0 -0
  20. sample/tomasbily_000375_00_20241020182524.png +0 -0
  21. sample/tomasbily_000375_01_20241020175057.png +0 -0
  22. sample/tomasbily_000375_01_20241020182538.png +0 -0
  23. sample/tomasbily_000450_00_20241020175403.png +0 -0
  24. sample/tomasbily_000450_00_20241020182844.png +0 -0
  25. sample/tomasbily_000450_01_20241020175416.png +0 -0
  26. sample/tomasbily_000450_01_20241020182858.png +0 -0
  27. sample/tomasbily_000525_00_20241020175723.png +0 -0
  28. sample/tomasbily_000525_00_20241020183205.png +0 -0
  29. sample/tomasbily_000525_01_20241020175737.png +0 -0
  30. sample/tomasbily_000525_01_20241020183218.png +0 -0
  31. sample/tomasbily_000600_00_20241020180043.png +0 -0
  32. sample/tomasbily_000600_01_20241020180056.png +0 -0
  33. sample/tomasbily_000675_00_20241020180402.png +0 -0
  34. sample/tomasbily_000675_01_20241020180415.png +0 -0
  35. sample_prompts.txt +3 -0
  36. tomasbily-000001.safetensors +3 -0
  37. tomasbily-000002.safetensors +3 -0
  38. tomasbily-000003.safetensors +3 -0
  39. tomasbily-000004.safetensors +3 -0
  40. tomasbily.safetensors +3 -0
  41. train.sh +34 -0
README.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/tomasbily_000675_00_20241020180402.png
12
+ text: tomasbily is standing in nature by the river wearing a nike t-shirt and
13
+ jeans.
14
+ - output:
15
+ url: sample/tomasbily_000675_01_20241020180415.png
16
+ text: tomasbily stands in nature by the river wearing shirts and a coat and jeans.
17
+ base_model: black-forest-labs/FLUX.1-dev
18
+ instance_prompt: tomasbily
19
+ license: other
20
+ license_name: flux-1-dev-non-commercial-license
21
+ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
22
+ ---
23
+
24
+ # TomasBily
25
+
26
+ A Flux LoRA trained on a local computer with [Fluxgym](https://github.com/cocktailpeanut/fluxgym)
27
+
28
+ <Gallery />
29
+
30
+ ## Trigger words
31
+
32
+ You should use `tomasbily` to trigger the image generation.
33
+
34
+ ## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, Forge, etc.
35
+
36
+ Weights for this model are available in Safetensors format.
37
+
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 = 512
8
+ batch_size = 1
9
+ keep_tokens = 1
10
+
11
+ [[datasets.subsets]]
12
+ image_dir = '/app/fluxgym/datasets/tomasbily'
13
+ class_tokens = 'tomasbily'
14
+ num_repeats = 5
sample/tomasbily_000075_00_20241020173724.png ADDED
sample/tomasbily_000075_00_20241020181201.png ADDED
sample/tomasbily_000075_01_20241020173737.png ADDED
sample/tomasbily_000075_01_20241020181215.png ADDED
sample/tomasbily_000150_00_20241020174043.png ADDED
sample/tomasbily_000150_00_20241020181523.png ADDED
sample/tomasbily_000150_01_20241020174057.png ADDED
sample/tomasbily_000150_01_20241020181536.png ADDED
sample/tomasbily_000225_00_20241020174403.png ADDED
sample/tomasbily_000225_00_20241020181843.png ADDED
sample/tomasbily_000225_01_20241020174416.png ADDED
sample/tomasbily_000225_01_20241020181856.png ADDED
sample/tomasbily_000300_00_20241020174724.png ADDED
sample/tomasbily_000300_00_20241020182203.png ADDED
sample/tomasbily_000300_01_20241020174737.png ADDED
sample/tomasbily_000300_01_20241020182217.png ADDED
sample/tomasbily_000375_00_20241020175043.png ADDED
sample/tomasbily_000375_00_20241020182524.png ADDED
sample/tomasbily_000375_01_20241020175057.png ADDED
sample/tomasbily_000375_01_20241020182538.png ADDED
sample/tomasbily_000450_00_20241020175403.png ADDED
sample/tomasbily_000450_00_20241020182844.png ADDED
sample/tomasbily_000450_01_20241020175416.png ADDED
sample/tomasbily_000450_01_20241020182858.png ADDED
sample/tomasbily_000525_00_20241020175723.png ADDED
sample/tomasbily_000525_00_20241020183205.png ADDED
sample/tomasbily_000525_01_20241020175737.png ADDED
sample/tomasbily_000525_01_20241020183218.png ADDED
sample/tomasbily_000600_00_20241020180043.png ADDED
sample/tomasbily_000600_01_20241020180056.png ADDED
sample/tomasbily_000675_00_20241020180402.png ADDED
sample/tomasbily_000675_01_20241020180415.png ADDED
sample_prompts.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ tomasbily is standing in nature by the river wearing a nike t-shirt and jeans.
2
+
3
+ tomasbily stands in nature by the river wearing shirts and a coat and jeans.
tomasbily-000001.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a75984eddd95fa7ddbe9432837d3de2d9d7e0fefd6fd84fe50201672c237376e
3
+ size 317077864
tomasbily-000002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:def316d106646ef2a941564a83c0aeda82415300447bc6ba38efc19efbb081be
3
+ size 317077856
tomasbily-000003.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af5b3cb3328a6a51d23eebe8047cf8389d387b40fb84997b9cd7e9661a6a80de
3
+ size 317077864
tomasbily-000004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b8e0d9d72aa9d8c25dcf909231ad0a7d74be1d1939b525284e3cbc6bf2dc522
3
+ size 317077864
tomasbily.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9feafc176ed2d40ac0cccd6284182dd4dd5d854c2cd9e808530b9f35abb302c
3
+ size 317077864
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-dev.sft" \
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 32 \
19
+ --optimizer_type adamw8bit \--sample_prompts="/app/fluxgym/outputs/tomasbily/sample_prompts.txt" --sample_every_n_steps="75" \
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 5 \
26
+ --save_every_n_epochs 1 \
27
+ --dataset_config "/app/fluxgym/outputs/tomasbily/dataset.toml" \
28
+ --output_dir "/app/fluxgym/outputs/tomasbily" \
29
+ --output_name tomasbily \
30
+ --timestep_sampling shift \
31
+ --discrete_flow_shift 3.1582 \
32
+ --model_prediction_type raw \
33
+ --guidance_scale 1 \
34
+ --loss_type l2 \