exploer commited on
Commit
de22f6c
·
verified ·
1 Parent(s): 5a86f4a

Upload folder using huggingface_hub

Browse files
Files changed (34) hide show
  1. README.md +39 -0
  2. dataset.toml +14 -0
  3. sample/tomasbily_000075_00_20241004150219.png +0 -0
  4. sample/tomasbily_000075_01_20241004150229.png +0 -0
  5. sample/tomasbily_000150_00_20241004150500.png +0 -0
  6. sample/tomasbily_000150_01_20241004150511.png +0 -0
  7. sample/tomasbily_000225_00_20241004150742.png +0 -0
  8. sample/tomasbily_000225_01_20241004150753.png +0 -0
  9. sample/tomasbily_000300_00_20241004151028.png +0 -0
  10. sample/tomasbily_000300_01_20241004151038.png +0 -0
  11. sample/tomasbily_000375_00_20241004151310.png +0 -0
  12. sample/tomasbily_000375_01_20241004151320.png +0 -0
  13. sample/tomasbily_000450_00_20241004151550.png +0 -0
  14. sample/tomasbily_000450_01_20241004151601.png +0 -0
  15. sample/tomasbily_000525_00_20241004151833.png +0 -0
  16. sample/tomasbily_000525_01_20241004151844.png +0 -0
  17. sample/tomasbily_000600_00_20241004152115.png +0 -0
  18. sample/tomasbily_000600_01_20241004152125.png +0 -0
  19. sample/tomasbily_000675_00_20241004152356.png +0 -0
  20. sample/tomasbily_000675_01_20241004152407.png +0 -0
  21. sample/tomasbily_000750_00_20241004152636.png +0 -0
  22. sample/tomasbily_000750_01_20241004152647.png +0 -0
  23. sample/tomasbily_000825_00_20241004152917.png +0 -0
  24. sample/tomasbily_000825_01_20241004152927.png +0 -0
  25. sample/tomasbily_000900_00_20241004153157.png +0 -0
  26. sample/tomasbily_000900_01_20241004153208.png +0 -0
  27. sample/tomasbily_000975_00_20241004153438.png +0 -0
  28. sample/tomasbily_000975_01_20241004153449.png +0 -0
  29. sample_prompts.txt +6 -0
  30. tomasbily-000004.safetensors +3 -0
  31. tomasbily-000008.safetensors +3 -0
  32. tomasbily-000012.safetensors +3 -0
  33. tomasbily.safetensors +3 -0
  34. train.sh +34 -0
README.md ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_000975_00_20241004153438.png
12
+ text: tomasbily a man standing on the steps of a building wearing a grey jacket
13
+ and jeans. The background of the image includes a wooden fence, a bench, some
14
+ plants, and a window.
15
+ - output:
16
+ url: sample/tomasbily_000975_01_20241004153449.png
17
+ text: tomasbily a man with a beard wearing a grey jacket, looking directly at
18
+ the camera with a blurred background.
19
+ base_model: black-forest-labs/FLUX.1-dev
20
+ instance_prompt: tomasbily
21
+ license: other
22
+ license_name: flux-1-dev-non-commercial-license
23
+ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
24
+ ---
25
+
26
+ # tomasbily
27
+
28
+ A Flux LoRA trained on a local computer with [Fluxgym](https://github.com/cocktailpeanut/fluxgym)
29
+
30
+ <Gallery />
31
+
32
+ ## Trigger words
33
+
34
+ You should use `tomasbily` to trigger the image generation.
35
+
36
+ ## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, Forge, etc.
37
+
38
+ Weights for this model are available in Safetensors format.
39
+
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_20241004150219.png ADDED
sample/tomasbily_000075_01_20241004150229.png ADDED
sample/tomasbily_000150_00_20241004150500.png ADDED
sample/tomasbily_000150_01_20241004150511.png ADDED
sample/tomasbily_000225_00_20241004150742.png ADDED
sample/tomasbily_000225_01_20241004150753.png ADDED
sample/tomasbily_000300_00_20241004151028.png ADDED
sample/tomasbily_000300_01_20241004151038.png ADDED
sample/tomasbily_000375_00_20241004151310.png ADDED
sample/tomasbily_000375_01_20241004151320.png ADDED
sample/tomasbily_000450_00_20241004151550.png ADDED
sample/tomasbily_000450_01_20241004151601.png ADDED
sample/tomasbily_000525_00_20241004151833.png ADDED
sample/tomasbily_000525_01_20241004151844.png ADDED
sample/tomasbily_000600_00_20241004152115.png ADDED
sample/tomasbily_000600_01_20241004152125.png ADDED
sample/tomasbily_000675_00_20241004152356.png ADDED
sample/tomasbily_000675_01_20241004152407.png ADDED
sample/tomasbily_000750_00_20241004152636.png ADDED
sample/tomasbily_000750_01_20241004152647.png ADDED
sample/tomasbily_000825_00_20241004152917.png ADDED
sample/tomasbily_000825_01_20241004152927.png ADDED
sample/tomasbily_000900_00_20241004153157.png ADDED
sample/tomasbily_000900_01_20241004153208.png ADDED
sample/tomasbily_000975_00_20241004153438.png ADDED
sample/tomasbily_000975_01_20241004153449.png ADDED
sample_prompts.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ tomasbily a man standing on the steps of a building wearing a grey jacket and jeans. The background of the image includes a wooden fence, a bench, some plants, and a window.
2
+
3
+
4
+ tomasbily a man with a beard wearing a grey jacket, looking directly at the camera with a blurred background.
5
+
6
+
tomasbily-000004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e35c86b926c49fc34d6d026425901ee340afd65ba5185a67594aae07979f37a
3
+ size 317078808
tomasbily-000008.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45929df330919ed0300b062b6a8b4a27a67e641a98b2253007c55bdafb7b31b3
3
+ size 317078808
tomasbily-000012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79e965e7c6b1114d3c38c5ca39787c9d60a10b6b49dbb518496034d4e3346da0
3
+ size 317078808
tomasbily.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df6bd75c477a0f7e0830cb747ec2ed2a321c182687bc843197e8a8694cc9e868
3
+ size 317078816
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 0 \
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 16 \
26
+ --save_every_n_epochs 4 \
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 \