Sri2901 commited on
Commit
3bbdcfc
·
verified ·
1 Parent(s): 7b23181

Upload model via CLI

Browse files
Files changed (49) hide show
  1. .job_config.json +131 -0
  2. README.md +54 -0
  3. W_sunglass.safetensors +3 -0
  4. W_sunglass_000000250.safetensors +3 -0
  5. W_sunglass_000000500.safetensors +3 -0
  6. W_sunglass_000000750.safetensors +3 -0
  7. W_sunglass_000001000.safetensors +3 -0
  8. W_sunglass_000001250.safetensors +3 -0
  9. W_sunglass_000001500.safetensors +3 -0
  10. W_sunglass_000001750.safetensors +3 -0
  11. config.yaml +115 -0
  12. log.txt +0 -0
  13. optimizer.pt +3 -0
  14. samples/1755933382510__000000000_0.jpg +0 -0
  15. samples/1755933400301__000000000_1.jpg +0 -0
  16. samples/1755933418473__000000000_2.jpg +0 -0
  17. samples/1755933436409__000000000_3.jpg +0 -0
  18. samples/1755934212438__000000250_0.jpg +0 -0
  19. samples/1755934230440__000000250_1.jpg +0 -0
  20. samples/1755934248584__000000250_2.jpg +0 -0
  21. samples/1755934266569__000000250_3.jpg +0 -0
  22. samples/1755935047647__000000500_0.jpg +0 -0
  23. samples/1755935065705__000000500_1.jpg +0 -0
  24. samples/1755935083795__000000500_2.jpg +0 -0
  25. samples/1755935101825__000000500_3.jpg +0 -0
  26. samples/1755935894415__000000750_0.jpg +0 -0
  27. samples/1755935912511__000000750_1.jpg +0 -0
  28. samples/1755935930641__000000750_2.jpg +0 -0
  29. samples/1755935948680__000000750_3.jpg +0 -0
  30. samples/1755936723309__000001000_0.jpg +0 -0
  31. samples/1755936741419__000001000_1.jpg +0 -0
  32. samples/1755936759510__000001000_2.jpg +0 -0
  33. samples/1755936777559__000001000_3.jpg +0 -0
  34. samples/1755937571274__000001250_0.jpg +0 -0
  35. samples/1755937589689__000001250_1.jpg +0 -0
  36. samples/1755937608022__000001250_2.jpg +0 -0
  37. samples/1755937626358__000001250_3.jpg +0 -0
  38. samples/1755938434544__000001500_0.jpg +0 -0
  39. samples/1755938452701__000001500_1.jpg +0 -0
  40. samples/1755938470831__000001500_2.jpg +0 -0
  41. samples/1755938488950__000001500_3.jpg +0 -0
  42. samples/1755939267819__000001750_0.jpg +0 -0
  43. samples/1755939285847__000001750_1.jpg +0 -0
  44. samples/1755939303888__000001750_2.jpg +0 -0
  45. samples/1755939321958__000001750_3.jpg +0 -0
  46. samples/1755940112564__000002000_0.jpg +0 -0
  47. samples/1755940130683__000002000_1.jpg +0 -0
  48. samples/1755940148820__000002000_2.jpg +0 -0
  49. samples/1755940166925__000002000_3.jpg +0 -0
.job_config.json ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "job": "extension",
3
+ "config": {
4
+ "name": "W_sunglass",
5
+ "process": [
6
+ {
7
+ "type": "ui_trainer",
8
+ "training_folder": "/workspace/ai-toolkit/output",
9
+ "sqlite_db_path": "/workspace/ai-toolkit/aitk_db.db",
10
+ "device": "cuda",
11
+ "trigger_word": "s@ngl@ss ",
12
+ "performance_log_every": 10,
13
+ "network": {
14
+ "type": "lora",
15
+ "linear": 32,
16
+ "linear_alpha": 32,
17
+ "conv": 16,
18
+ "conv_alpha": 16,
19
+ "lokr_full_rank": true,
20
+ "lokr_factor": -1,
21
+ "network_kwargs": {
22
+ "ignore_if_contains": []
23
+ }
24
+ },
25
+ "save": {
26
+ "dtype": "bf16",
27
+ "save_every": 250,
28
+ "max_step_saves_to_keep": 8,
29
+ "save_format": "diffusers",
30
+ "push_to_hub": false
31
+ },
32
+ "datasets": [
33
+ {
34
+ "folder_path": "/workspace/ai-toolkit/datasets/w_sunglass",
35
+ "control_path": null,
36
+ "mask_path": null,
37
+ "mask_min_value": 0.1,
38
+ "default_caption": "",
39
+ "caption_ext": "txt",
40
+ "caption_dropout_rate": 0.05,
41
+ "cache_latents_to_disk": false,
42
+ "is_reg": false,
43
+ "network_weight": 1,
44
+ "resolution": [
45
+ 512,
46
+ 768,
47
+ 1024,
48
+ 1536,
49
+ 1280
50
+ ],
51
+ "controls": [],
52
+ "shrink_video_to_frames": true,
53
+ "num_frames": 1,
54
+ "do_i2v": true
55
+ }
56
+ ],
57
+ "train": {
58
+ "batch_size": 1,
59
+ "bypass_guidance_embedding": false,
60
+ "steps": 2000,
61
+ "gradient_accumulation": 1,
62
+ "train_unet": true,
63
+ "train_text_encoder": false,
64
+ "gradient_checkpointing": true,
65
+ "noise_scheduler": "flowmatch",
66
+ "optimizer": "adamw8bit",
67
+ "timestep_type": "sigmoid",
68
+ "content_or_style": "balanced",
69
+ "optimizer_params": {
70
+ "weight_decay": 0.0001
71
+ },
72
+ "unload_text_encoder": false,
73
+ "cache_text_embeddings": false,
74
+ "lr": 0.0002,
75
+ "ema_config": {
76
+ "use_ema": true,
77
+ "ema_decay": 0.99
78
+ },
79
+ "skip_first_sample": false,
80
+ "disable_sampling": false,
81
+ "dtype": "bf16",
82
+ "diff_output_preservation": false,
83
+ "diff_output_preservation_multiplier": 1,
84
+ "diff_output_preservation_class": "person",
85
+ "switch_boundary_every": 1
86
+ },
87
+ "model": {
88
+ "name_or_path": "black-forest-labs/FLUX.1-dev",
89
+ "quantize": false,
90
+ "qtype": "qfloat8",
91
+ "quantize_te": true,
92
+ "qtype_te": "qfloat8",
93
+ "arch": "flux",
94
+ "low_vram": false,
95
+ "model_kwargs": {}
96
+ },
97
+ "sample": {
98
+ "sampler": "flowmatch",
99
+ "sample_every": 250,
100
+ "width": 1024,
101
+ "height": 1024,
102
+ "samples": [
103
+ {
104
+ "prompt": "s@ngl@ss woman in close-up front portrait pose wearing narrow oval black sunglasses, loose wavy hair, dressed in a deep maroon open-collar blouse, natural confident expression"
105
+ },
106
+ {
107
+ "prompt": "s@ngl@ss woman portrait pose, wearing round gradient brown lens sunglasses with thin golden bridge and brown acetate frame, styled with natural wavy dark hair, minimal natural makeup, lips in nude tone, dressed in a strappy outfit with tortoiseshell detail, pose with right hand gently adjusting the sunglasses, close-up shot, soft daylight background, "
108
+ },
109
+ {
110
+ "prompt": "s@ngl@ss woman close-up seated portrait pose, resting chin lightly on hand, short curly hair, wearing amber-brown wayfarer style sunglasses with dark lenses, draped tan off-shoulder outfit, metallic choker necklace, warm studio backdrop enhancing elegance and artistic mood"
111
+ },
112
+ {
113
+ "prompt": "s@ngl@ss woman portrait pose, three-quarter side view, wearing rectangular tortoiseshell sunglasses with bold temples featuring gold “MIU MIU” branding, hair tied back in a sleek low ponytail, natural minimal makeup, dressed in a pale blue collared shirt, neutral white background,"
114
+ }
115
+ ],
116
+ "neg": "",
117
+ "seed": 42,
118
+ "walk_seed": true,
119
+ "guidance_scale": 2.8,
120
+ "sample_steps": 30,
121
+ "num_frames": 1,
122
+ "fps": 1
123
+ }
124
+ }
125
+ ]
126
+ },
127
+ "meta": {
128
+ "name": "[name]",
129
+ "version": "1.0"
130
+ }
131
+ }
README.md ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - text-to-image
4
+ - flux
5
+ - lora
6
+ - diffusers
7
+ - template:sd-lora
8
+ - ai-toolkit
9
+ base_model: black-forest-labs/FLUX.1-dev
10
+ instance_prompt: s@ngl@ss
11
+ license: other
12
+ license_name: flux-1-dev-non-commercial-license
13
+ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
14
+ widget:
15
+ - text: Sample generation
16
+ output:
17
+ url: samples/1755933382510__000000000_0.jpg
18
+ - text: Sample generation
19
+ output:
20
+ url: samples/1755933400301__000000000_1.jpg
21
+ - text: Sample generation
22
+ output:
23
+ url: samples/1755933418473__000000000_2.jpg
24
+ ---
25
+
26
+ # W_sunglass
27
+
28
+ Model trained with AI Toolkit by Ostris
29
+
30
+ <Gallery />
31
+
32
+ ## Trigger words
33
+
34
+ You should use `s@ngl@ss` to trigger the image generation.
35
+
36
+ ## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, etc.
37
+
38
+ Weights for this model are available in Safetensors format.
39
+
40
+ [Download](/username/W_sunglass/tree/main) them in the Files & versions tab.
41
+
42
+ ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
43
+
44
+ ```py
45
+ from diffusers import AutoPipelineForText2Image
46
+ import torch
47
+
48
+ pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
49
+ pipeline.load_lora_weights('username/W_sunglass', weight_name='W_sunglass_000000250.safetensors')
50
+ image = pipeline('s@ngl@ss style artwork').images[0]
51
+ image.save("my_image.png")
52
+ ```
53
+
54
+ For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)
W_sunglass.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0b2d4854688798203f6fcfa59b55a1edcc5732e455e623bc5e7661f1da5b468
3
+ size 343806432
W_sunglass_000000250.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d526a460a38823b57b9ba9fde6ee2f5dee9c031da77568f6e5f574fd3889290b
3
+ size 343806432
W_sunglass_000000500.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f709a788dfd968cfd14e4ceec396414e7bb61a4f7caa03a4d666742b6c9c9666
3
+ size 343806432
W_sunglass_000000750.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d67b3ea5aeb8dc4e21b6ec0da65b25c106dcfd81a4712274bafab1fe7ea83d52
3
+ size 343806432
W_sunglass_000001000.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1f31773f2a97029bab494293ea1734919f615f4de9e177ee188a6878005a7fa
3
+ size 343806432
W_sunglass_000001250.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b05bcffc4ce045a41bd42523b11c953a3f85c26c04aab943b1ee04a2dee559c6
3
+ size 343806432
W_sunglass_000001500.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92e9f4a2c1034429b076531ebe84e6e99cca36ffa397f53de5077acd34e7eee9
3
+ size 343806432
W_sunglass_000001750.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ef0430f10465300acf232a7313d6489a041c044a4bd955bbde39cbe78b9fdaa
3
+ size 343806432
config.yaml ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ job: extension
2
+ config:
3
+ name: W_sunglass
4
+ process:
5
+ - type: ui_trainer
6
+ training_folder: /workspace/ai-toolkit/output
7
+ sqlite_db_path: /workspace/ai-toolkit/aitk_db.db
8
+ device: cuda
9
+ trigger_word: 's@ngl@ss '
10
+ performance_log_every: 10
11
+ network:
12
+ type: lora
13
+ linear: 32
14
+ linear_alpha: 32
15
+ conv: 16
16
+ conv_alpha: 16
17
+ lokr_full_rank: true
18
+ lokr_factor: -1
19
+ network_kwargs:
20
+ ignore_if_contains: []
21
+ save:
22
+ dtype: bf16
23
+ save_every: 250
24
+ max_step_saves_to_keep: 8
25
+ save_format: diffusers
26
+ push_to_hub: false
27
+ datasets:
28
+ - folder_path: /workspace/ai-toolkit/datasets/w_sunglass
29
+ control_path: null
30
+ mask_path: null
31
+ mask_min_value: 0.1
32
+ default_caption: ''
33
+ caption_ext: txt
34
+ caption_dropout_rate: 0.05
35
+ cache_latents_to_disk: false
36
+ is_reg: false
37
+ network_weight: 1
38
+ resolution:
39
+ - 512
40
+ - 768
41
+ - 1024
42
+ - 1536
43
+ - 1280
44
+ controls: []
45
+ shrink_video_to_frames: true
46
+ num_frames: 1
47
+ do_i2v: true
48
+ train:
49
+ batch_size: 1
50
+ bypass_guidance_embedding: false
51
+ steps: 2000
52
+ gradient_accumulation: 1
53
+ train_unet: true
54
+ train_text_encoder: false
55
+ gradient_checkpointing: true
56
+ noise_scheduler: flowmatch
57
+ optimizer: adamw8bit
58
+ timestep_type: sigmoid
59
+ content_or_style: balanced
60
+ optimizer_params:
61
+ weight_decay: 0.0001
62
+ unload_text_encoder: false
63
+ cache_text_embeddings: false
64
+ lr: 0.0002
65
+ ema_config:
66
+ use_ema: true
67
+ ema_decay: 0.99
68
+ skip_first_sample: false
69
+ disable_sampling: false
70
+ dtype: bf16
71
+ diff_output_preservation: false
72
+ diff_output_preservation_multiplier: 1
73
+ diff_output_preservation_class: person
74
+ switch_boundary_every: 1
75
+ model:
76
+ name_or_path: black-forest-labs/FLUX.1-dev
77
+ quantize: false
78
+ qtype: qfloat8
79
+ quantize_te: true
80
+ qtype_te: qfloat8
81
+ arch: flux
82
+ low_vram: false
83
+ model_kwargs: {}
84
+ sample:
85
+ sampler: flowmatch
86
+ sample_every: 250
87
+ width: 1024
88
+ height: 1024
89
+ samples:
90
+ - prompt: s@ngl@ss woman in close-up front portrait pose wearing narrow oval
91
+ black sunglasses, loose wavy hair, dressed in a deep maroon open-collar
92
+ blouse, natural confident expression
93
+ - prompt: 's@ngl@ss woman portrait pose, wearing round gradient brown lens sunglasses
94
+ with thin golden bridge and brown acetate frame, styled with natural wavy
95
+ dark hair, minimal natural makeup, lips in nude tone, dressed in a strappy
96
+ outfit with tortoiseshell detail, pose with right hand gently adjusting
97
+ the sunglasses, close-up shot, soft daylight background, '
98
+ - prompt: s@ngl@ss woman close-up seated portrait pose, resting chin lightly
99
+ on hand, short curly hair, wearing amber-brown wayfarer style sunglasses
100
+ with dark lenses, draped tan off-shoulder outfit, metallic choker necklace,
101
+ warm studio backdrop enhancing elegance and artistic mood
102
+ - prompt: "s@ngl@ss woman portrait pose, three-quarter side view, wearing rectangular\
103
+ \ tortoiseshell sunglasses with bold temples featuring gold \u201CMIU MIU\u201D\
104
+ \ branding, hair tied back in a sleek low ponytail, natural minimal makeup,\
105
+ \ dressed in a pale blue collared shirt, neutral white background,"
106
+ neg: ''
107
+ seed: 42
108
+ walk_seed: true
109
+ guidance_scale: 2.8
110
+ sample_steps: 30
111
+ num_frames: 1
112
+ fps: 1
113
+ meta:
114
+ name: W_sunglass
115
+ version: '1.0'
log.txt ADDED
The diff for this file is too large to render. See raw diff
 
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:350855bc068fc2ca54cd5e8e847609ee526a56b31651a689cb201f67257255df
3
+ size 350203413
samples/1755933382510__000000000_0.jpg ADDED
samples/1755933400301__000000000_1.jpg ADDED
samples/1755933418473__000000000_2.jpg ADDED
samples/1755933436409__000000000_3.jpg ADDED
samples/1755934212438__000000250_0.jpg ADDED
samples/1755934230440__000000250_1.jpg ADDED
samples/1755934248584__000000250_2.jpg ADDED
samples/1755934266569__000000250_3.jpg ADDED
samples/1755935047647__000000500_0.jpg ADDED
samples/1755935065705__000000500_1.jpg ADDED
samples/1755935083795__000000500_2.jpg ADDED
samples/1755935101825__000000500_3.jpg ADDED
samples/1755935894415__000000750_0.jpg ADDED
samples/1755935912511__000000750_1.jpg ADDED
samples/1755935930641__000000750_2.jpg ADDED
samples/1755935948680__000000750_3.jpg ADDED
samples/1755936723309__000001000_0.jpg ADDED
samples/1755936741419__000001000_1.jpg ADDED
samples/1755936759510__000001000_2.jpg ADDED
samples/1755936777559__000001000_3.jpg ADDED
samples/1755937571274__000001250_0.jpg ADDED
samples/1755937589689__000001250_1.jpg ADDED
samples/1755937608022__000001250_2.jpg ADDED
samples/1755937626358__000001250_3.jpg ADDED
samples/1755938434544__000001500_0.jpg ADDED
samples/1755938452701__000001500_1.jpg ADDED
samples/1755938470831__000001500_2.jpg ADDED
samples/1755938488950__000001500_3.jpg ADDED
samples/1755939267819__000001750_0.jpg ADDED
samples/1755939285847__000001750_1.jpg ADDED
samples/1755939303888__000001750_2.jpg ADDED
samples/1755939321958__000001750_3.jpg ADDED
samples/1755940112564__000002000_0.jpg ADDED
samples/1755940130683__000002000_1.jpg ADDED
samples/1755940148820__000002000_2.jpg ADDED
samples/1755940166925__000002000_3.jpg ADDED