exploer commited on
Commit
770f20e
1 Parent(s): 847710f

Upload folder using huggingface_hub

Browse files
Files changed (50) hide show
  1. README.md +42 -0
  2. dataset.toml +14 -0
  3. person-000004.safetensors +3 -0
  4. person-000008.safetensors +3 -0
  5. person-000012.safetensors +3 -0
  6. person.safetensors +3 -0
  7. sample/person_000075_00_20241003132759.png +0 -0
  8. sample/person_000075_01_20241003132808.png +0 -0
  9. sample/person_000075_02_20241003132818.png +0 -0
  10. sample/person_000150_00_20241003133151.png +0 -0
  11. sample/person_000150_01_20241003133200.png +0 -0
  12. sample/person_000150_02_20241003133210.png +0 -0
  13. sample/person_000225_00_20241003133543.png +0 -0
  14. sample/person_000225_01_20241003133552.png +0 -0
  15. sample/person_000225_02_20241003133602.png +0 -0
  16. sample/person_000300_00_20241003133936.png +0 -0
  17. sample/person_000300_01_20241003133945.png +0 -0
  18. sample/person_000300_02_20241003133955.png +0 -0
  19. sample/person_000375_00_20241003134329.png +0 -0
  20. sample/person_000375_01_20241003134338.png +0 -0
  21. sample/person_000375_02_20241003134348.png +0 -0
  22. sample/person_000450_00_20241003134722.png +0 -0
  23. sample/person_000450_01_20241003134731.png +0 -0
  24. sample/person_000450_02_20241003134741.png +0 -0
  25. sample/person_000525_00_20241003135114.png +0 -0
  26. sample/person_000525_01_20241003135124.png +0 -0
  27. sample/person_000525_02_20241003135133.png +0 -0
  28. sample/person_000600_00_20241003135508.png +0 -0
  29. sample/person_000600_01_20241003135517.png +0 -0
  30. sample/person_000600_02_20241003135527.png +0 -0
  31. sample/person_000675_00_20241003135901.png +0 -0
  32. sample/person_000675_01_20241003135911.png +0 -0
  33. sample/person_000675_02_20241003135920.png +0 -0
  34. sample/person_000750_00_20241003140254.png +0 -0
  35. sample/person_000750_01_20241003140303.png +0 -0
  36. sample/person_000750_02_20241003140313.png +0 -0
  37. sample/person_000825_00_20241003140646.png +0 -0
  38. sample/person_000825_01_20241003140656.png +0 -0
  39. sample/person_000825_02_20241003140705.png +0 -0
  40. sample/person_000900_00_20241003141039.png +0 -0
  41. sample/person_000900_01_20241003141048.png +0 -0
  42. sample/person_000900_02_20241003141058.png +0 -0
  43. sample/person_000975_00_20241003141431.png +0 -0
  44. sample/person_000975_01_20241003141441.png +0 -0
  45. sample/person_000975_02_20241003141450.png +0 -0
  46. sample/person_001050_00_20241003141823.png +0 -0
  47. sample/person_001050_01_20241003141833.png +0 -0
  48. sample/person_001050_02_20241003141842.png +0 -0
  49. sample_prompts.txt +6 -0
  50. train.sh +34 -0
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/person_001050_00_20241003141823.png
12
+ text: tomasbily a man with a beard wearing a grey jacket standing in front of
13
+ a backdrop of trees.
14
+ - output:
15
+ url: sample/person_001050_01_20241003141833.png
16
+ text: tomasbily a man standing in the grass wearing a white and grey t-shirt.
17
+ The background is slightly blurred, with trees visible in the distance.
18
+ - output:
19
+ url: sample/person_001050_02_20241003141842.png
20
+ text: tomasbily a man with a beard wearing a grey and white t-shirt standing in
21
+ front of a backdrop of trees.
22
+ base_model: black-forest-labs/FLUX.1-dev
23
+ instance_prompt: tomasbily
24
+ license: other
25
+ license_name: flux-1-dev-non-commercial-license
26
+ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
27
+ ---
28
+
29
+ # person
30
+
31
+ A Flux LoRA trained on a local computer with [Fluxgym](https://github.com/cocktailpeanut/fluxgym)
32
+
33
+ <Gallery />
34
+
35
+ ## Trigger words
36
+
37
+ You should use `tomasbily` to trigger the image generation.
38
+
39
+ ## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, Forge, etc.
40
+
41
+ Weights for this model are available in Safetensors format.
42
+
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 = 768
8
+ batch_size = 1
9
+ keep_tokens = 1
10
+
11
+ [[datasets.subsets]]
12
+ image_dir = '/app/fluxgym/datasets/person'
13
+ class_tokens = 'tomasbily'
14
+ num_repeats = 5
person-000004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b316e967670a750f4b9b4151f14451e7766443db3eb64e79962cd235980d13ab
3
+ size 158613232
person-000008.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b39861ad6d7f15a4106adfd14cffa744bf10d13cc425d07a8f8c14b98e76072
3
+ size 158613232
person-000012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9573b0ef2bb3c3726c8783ec0f147678c9ab8ec9a3b52f57b2050f9bb5d597d1
3
+ size 158613232
person.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59c8eb7de8d251d78eaf3566287b29972d5dafcb0e13639241eecf2134a82829
3
+ size 158613232
sample/person_000075_00_20241003132759.png ADDED
sample/person_000075_01_20241003132808.png ADDED
sample/person_000075_02_20241003132818.png ADDED
sample/person_000150_00_20241003133151.png ADDED
sample/person_000150_01_20241003133200.png ADDED
sample/person_000150_02_20241003133210.png ADDED
sample/person_000225_00_20241003133543.png ADDED
sample/person_000225_01_20241003133552.png ADDED
sample/person_000225_02_20241003133602.png ADDED
sample/person_000300_00_20241003133936.png ADDED
sample/person_000300_01_20241003133945.png ADDED
sample/person_000300_02_20241003133955.png ADDED
sample/person_000375_00_20241003134329.png ADDED
sample/person_000375_01_20241003134338.png ADDED
sample/person_000375_02_20241003134348.png ADDED
sample/person_000450_00_20241003134722.png ADDED
sample/person_000450_01_20241003134731.png ADDED
sample/person_000450_02_20241003134741.png ADDED
sample/person_000525_00_20241003135114.png ADDED
sample/person_000525_01_20241003135124.png ADDED
sample/person_000525_02_20241003135133.png ADDED
sample/person_000600_00_20241003135508.png ADDED
sample/person_000600_01_20241003135517.png ADDED
sample/person_000600_02_20241003135527.png ADDED
sample/person_000675_00_20241003135901.png ADDED
sample/person_000675_01_20241003135911.png ADDED
sample/person_000675_02_20241003135920.png ADDED
sample/person_000750_00_20241003140254.png ADDED
sample/person_000750_01_20241003140303.png ADDED
sample/person_000750_02_20241003140313.png ADDED
sample/person_000825_00_20241003140646.png ADDED
sample/person_000825_01_20241003140656.png ADDED
sample/person_000825_02_20241003140705.png ADDED
sample/person_000900_00_20241003141039.png ADDED
sample/person_000900_01_20241003141048.png ADDED
sample/person_000900_02_20241003141058.png ADDED
sample/person_000975_00_20241003141431.png ADDED
sample/person_000975_01_20241003141441.png ADDED
sample/person_000975_02_20241003141450.png ADDED
sample/person_001050_00_20241003141823.png ADDED
sample/person_001050_01_20241003141833.png ADDED
sample/person_001050_02_20241003141842.png ADDED
sample_prompts.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ tomasbily a man with a beard wearing a grey jacket standing in front of a backdrop of trees.
2
+
3
+
4
+ tomasbily a man standing in the grass wearing a white and grey t-shirt. The background is slightly blurred, with trees visible in the distance.
5
+
6
+ tomasbily a man with a beard wearing a grey and white t-shirt standing in front of a backdrop of trees.
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 16 \
19
+ --optimizer_type adamw8bit \--sample_prompts="/app/fluxgym/outputs/person/sample_prompts.txt" --sample_every_n_steps="75" \
20
+ --learning_rate 4e-4 \
21
+ --cache_text_encoder_outputs \
22
+ --cache_text_encoder_outputs_to_disk \
23
+ --fp8_base \
24
+ --highvram \
25
+ --max_train_epochs 14 \
26
+ --save_every_n_epochs 4 \
27
+ --dataset_config "/app/fluxgym/outputs/person/dataset.toml" \
28
+ --output_dir "/app/fluxgym/outputs/person" \
29
+ --output_name person \
30
+ --timestep_sampling shift \
31
+ --discrete_flow_shift 3.1582 \
32
+ --model_prediction_type raw \
33
+ --guidance_scale 1 \
34
+ --loss_type l2 \