cocktailpeanut commited on
Commit
8535f41
·
verified ·
1 Parent(s): 3abc6b9

Upload folder using huggingface_hub

Browse files
Files changed (48) hide show
  1. README.md +45 -0
  2. dataset.toml +14 -0
  3. sample/spectacles_000200_00_20240918064119.png +0 -0
  4. sample/spectacles_000200_01_20240918064136.png +0 -0
  5. sample/spectacles_000200_02_20240918064154.png +0 -0
  6. sample/spectacles_000200_03_20240918064211.png +0 -0
  7. sample/spectacles_000200_04_20240918064228.png +0 -0
  8. sample/spectacles_000400_00_20240918065221.png +0 -0
  9. sample/spectacles_000400_01_20240918065238.png +0 -0
  10. sample/spectacles_000400_02_20240918065256.png +0 -0
  11. sample/spectacles_000400_03_20240918065313.png +0 -0
  12. sample/spectacles_000400_04_20240918065330.png +0 -0
  13. sample/spectacles_000600_00_20240918070319.png +0 -0
  14. sample/spectacles_000600_01_20240918070336.png +0 -0
  15. sample/spectacles_000600_02_20240918070353.png +0 -0
  16. sample/spectacles_000600_03_20240918070410.png +0 -0
  17. sample/spectacles_000600_04_20240918070427.png +0 -0
  18. sample/spectacles_000800_00_20240918071412.png +0 -0
  19. sample/spectacles_000800_01_20240918071429.png +0 -0
  20. sample/spectacles_000800_02_20240918071446.png +0 -0
  21. sample/spectacles_000800_03_20240918071503.png +0 -0
  22. sample/spectacles_000800_04_20240918071520.png +0 -0
  23. sample/spectacles_001000_00_20240918072507.png +0 -0
  24. sample/spectacles_001000_01_20240918072524.png +0 -0
  25. sample/spectacles_001000_02_20240918072541.png +0 -0
  26. sample/spectacles_001000_03_20240918072558.png +0 -0
  27. sample/spectacles_001000_04_20240918072616.png +0 -0
  28. sample/spectacles_001200_00_20240918073601.png +0 -0
  29. sample/spectacles_001200_01_20240918073618.png +0 -0
  30. sample/spectacles_001200_02_20240918073635.png +0 -0
  31. sample/spectacles_001200_03_20240918073652.png +0 -0
  32. sample/spectacles_001200_04_20240918073709.png +0 -0
  33. sample/spectacles_001400_00_20240918074655.png +0 -0
  34. sample/spectacles_001400_01_20240918074713.png +0 -0
  35. sample/spectacles_001400_02_20240918074730.png +0 -0
  36. sample/spectacles_001400_03_20240918074747.png +0 -0
  37. sample/spectacles_001400_04_20240918074804.png +0 -0
  38. sample/spectacles_001600_00_20240918075755.png +0 -0
  39. sample/spectacles_001600_01_20240918075812.png +0 -0
  40. sample/spectacles_001600_02_20240918075829.png +0 -0
  41. sample/spectacles_001600_03_20240918075846.png +0 -0
  42. sample/spectacles_001600_04_20240918075904.png +0 -0
  43. sample_prompts.txt +5 -0
  44. spectacles-000004.safetensors +3 -0
  45. spectacles-000008.safetensors +3 -0
  46. spectacles-000012.safetensors +3 -0
  47. spectacles.safetensors +3 -0
  48. train.bat +34 -0
README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/spectacles_001600_00_20240918075755.png
12
+ text: an old asian lady wearing spectacles
13
+ - output:
14
+ url: sample/spectacles_001600_01_20240918075812.png
15
+ text: a politician in suits wearing spectacles
16
+ - output:
17
+ url: sample/spectacles_001600_02_20240918075829.png
18
+ text: teddy bear wearing spectacles
19
+ - output:
20
+ url: sample/spectacles_001600_03_20240918075846.png
21
+ text: a female fashion model walking on a runway wearing spectacles
22
+ - output:
23
+ url: sample/spectacles_001600_04_20240918075904.png
24
+ text: chucky wearing spectacles
25
+ base_model: black-forest-labs/FLUX.1-dev
26
+ instance_prompt: wearing spectacles
27
+ license: other
28
+ license_name: flux-1-dev-non-commercial-license
29
+ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
30
+ ---
31
+
32
+ # spectacles
33
+
34
+ Trained with [Fluxgym](https://github.com/cocktailpeanut/fluxgym)
35
+
36
+ <Gallery />
37
+
38
+ ## Trigger words
39
+
40
+ You should use `wearing spectacles` to trigger the image generation.
41
+
42
+ ## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, Forge, etc.
43
+
44
+ Weights for this model are available in Safetensors format.
45
+
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 = 'C:\pinokio\api\fluxgym.git\datasets\spectacles'
13
+ class_tokens = 'wearing spectacles'
14
+ num_repeats = 8
sample/spectacles_000200_00_20240918064119.png ADDED
sample/spectacles_000200_01_20240918064136.png ADDED
sample/spectacles_000200_02_20240918064154.png ADDED
sample/spectacles_000200_03_20240918064211.png ADDED
sample/spectacles_000200_04_20240918064228.png ADDED
sample/spectacles_000400_00_20240918065221.png ADDED
sample/spectacles_000400_01_20240918065238.png ADDED
sample/spectacles_000400_02_20240918065256.png ADDED
sample/spectacles_000400_03_20240918065313.png ADDED
sample/spectacles_000400_04_20240918065330.png ADDED
sample/spectacles_000600_00_20240918070319.png ADDED
sample/spectacles_000600_01_20240918070336.png ADDED
sample/spectacles_000600_02_20240918070353.png ADDED
sample/spectacles_000600_03_20240918070410.png ADDED
sample/spectacles_000600_04_20240918070427.png ADDED
sample/spectacles_000800_00_20240918071412.png ADDED
sample/spectacles_000800_01_20240918071429.png ADDED
sample/spectacles_000800_02_20240918071446.png ADDED
sample/spectacles_000800_03_20240918071503.png ADDED
sample/spectacles_000800_04_20240918071520.png ADDED
sample/spectacles_001000_00_20240918072507.png ADDED
sample/spectacles_001000_01_20240918072524.png ADDED
sample/spectacles_001000_02_20240918072541.png ADDED
sample/spectacles_001000_03_20240918072558.png ADDED
sample/spectacles_001000_04_20240918072616.png ADDED
sample/spectacles_001200_00_20240918073601.png ADDED
sample/spectacles_001200_01_20240918073618.png ADDED
sample/spectacles_001200_02_20240918073635.png ADDED
sample/spectacles_001200_03_20240918073652.png ADDED
sample/spectacles_001200_04_20240918073709.png ADDED
sample/spectacles_001400_00_20240918074655.png ADDED
sample/spectacles_001400_01_20240918074713.png ADDED
sample/spectacles_001400_02_20240918074730.png ADDED
sample/spectacles_001400_03_20240918074747.png ADDED
sample/spectacles_001400_04_20240918074804.png ADDED
sample/spectacles_001600_00_20240918075755.png ADDED
sample/spectacles_001600_01_20240918075812.png ADDED
sample/spectacles_001600_02_20240918075829.png ADDED
sample/spectacles_001600_03_20240918075846.png ADDED
sample/spectacles_001600_04_20240918075904.png ADDED
sample_prompts.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ an old asian lady wearing spectacles
2
+ a politician in suits wearing spectacles
3
+ teddy bear wearing spectacles
4
+ a female fashion model walking on a runway wearing spectacles
5
+ chucky wearing spectacles
spectacles-000004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d99976d5c09696a7980b166d7cbcd7cef31314f6563d8d84ef214645b9e701b
3
+ size 39757168
spectacles-000008.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b60bc8de8cf5b6492535cb378506e7a1f86e1f102763259064e8ec16fccd2ae
3
+ size 39757168
spectacles-000012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c490255e4544f24150b2da17335083f3b2b4e3b742bf671e48cf8d75c02539d
3
+ size 39757168
spectacles.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2353a553c4cbd11747a26725b4a3b126d4eb2e3e2b305656ccd0917372221b1d
3
+ size 39757168
train.bat 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 "C:\pinokio\api\fluxgym.git\models\unet\flux1-dev.sft" ^
6
+ --clip_l "C:\pinokio\api\fluxgym.git\models\clip\clip_l.safetensors" ^
7
+ --t5xxl "C:\pinokio\api\fluxgym.git\models\clip\t5xxl_fp16.safetensors" ^
8
+ --ae "C:\pinokio\api\fluxgym.git\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="C:\pinokio\api\fluxgym.git\outputs\spectacles\sample_prompts.txt" --sample_every_n_steps="200" ^
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 "C:\pinokio\api\fluxgym.git\outputs\spectacles\dataset.toml" ^
28
+ --output_dir "C:\pinokio\api\fluxgym.git\outputs\spectacles" ^
29
+ --output_name spectacles ^
30
+ --timestep_sampling shift ^
31
+ --discrete_flow_shift 3.1582 ^
32
+ --model_prediction_type raw ^
33
+ --guidance_scale 1 ^
34
+ --loss_type l2 ^