Sri2901 commited on
Commit
577ad69
·
verified ·
1 Parent(s): ecece4f

Upload model via CLI

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .job_config.json +134 -0
  2. README.md +54 -0
  3. YOUNG_MEN.safetensors +3 -0
  4. YOUNG_MEN_000000250.safetensors +3 -0
  5. YOUNG_MEN_000000500.safetensors +3 -0
  6. YOUNG_MEN_000000750.safetensors +3 -0
  7. YOUNG_MEN_000001000.safetensors +3 -0
  8. YOUNG_MEN_000001250.safetensors +3 -0
  9. YOUNG_MEN_000001500.safetensors +3 -0
  10. YOUNG_MEN_000001750.safetensors +3 -0
  11. YOUNG_MEN_000002000.safetensors +3 -0
  12. YOUNG_MEN_000002250.safetensors +3 -0
  13. config.yaml +123 -0
  14. log.txt +0 -0
  15. optimizer.pt +3 -0
  16. samples/1756896634975__000000000_0.jpg +0 -0
  17. samples/1756896652562__000000000_1.jpg +0 -0
  18. samples/1756896670256__000000000_2.jpg +0 -0
  19. samples/1756896688056__000000000_3.jpg +0 -0
  20. samples/1756897468002__000000250_0.jpg +0 -0
  21. samples/1756897485885__000000250_1.jpg +0 -0
  22. samples/1756897503823__000000250_2.jpg +0 -0
  23. samples/1756897521692__000000250_3.jpg +0 -0
  24. samples/1756898302700__000000500_0.jpg +0 -0
  25. samples/1756898320545__000000500_1.jpg +0 -0
  26. samples/1756898338462__000000500_2.jpg +0 -0
  27. samples/1756898356360__000000500_3.jpg +0 -0
  28. samples/1756899141196__000000750_0.jpg +0 -0
  29. samples/1756899159050__000000750_1.jpg +0 -0
  30. samples/1756899176970__000000750_2.jpg +0 -0
  31. samples/1756899194863__000000750_3.jpg +0 -0
  32. samples/1756899990684__000001000_0.jpg +0 -0
  33. samples/1756900008525__000001000_1.jpg +0 -0
  34. samples/1756900026433__000001000_2.jpg +0 -0
  35. samples/1756900044326__000001000_3.jpg +0 -0
  36. samples/1756900800923__000001250_0.jpg +0 -0
  37. samples/1756900818767__000001250_1.jpg +0 -0
  38. samples/1756900836687__000001250_2.jpg +0 -0
  39. samples/1756900854556__000001250_3.jpg +0 -0
  40. samples/1756901639831__000001500_0.jpg +0 -0
  41. samples/1756901657734__000001500_1.jpg +0 -0
  42. samples/1756901675699__000001500_2.jpg +0 -0
  43. samples/1756901693587__000001500_3.jpg +0 -0
  44. samples/1756902489388__000001750_0.jpg +0 -0
  45. samples/1756902507261__000001750_1.jpg +0 -0
  46. samples/1756902525185__000001750_2.jpg +0 -0
  47. samples/1756902543072__000001750_3.jpg +0 -0
  48. samples/1756903326115__000002000_0.jpg +0 -0
  49. samples/1756903343994__000002000_1.jpg +0 -0
  50. samples/1756903361947__000002000_2.jpg +0 -0
.job_config.json ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "job": "extension",
3
+ "config": {
4
+ "name": "YOUNG_MEN",
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": "m@n",
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": 10,
29
+ "save_format": "diffusers",
30
+ "push_to_hub": false
31
+ },
32
+ "datasets": [
33
+ {
34
+ "folder_path": "/workspace/ai-toolkit/datasets/young_men",
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
+ 1280,
49
+ 1536
50
+ ],
51
+ "controls": [],
52
+ "shrink_video_to_frames": true,
53
+ "num_frames": 1,
54
+ "do_i2v": true,
55
+ "flip_x": false,
56
+ "flip_y": false
57
+ }
58
+ ],
59
+ "train": {
60
+ "batch_size": 1,
61
+ "bypass_guidance_embedding": false,
62
+ "steps": 2500,
63
+ "gradient_accumulation": 1,
64
+ "train_unet": true,
65
+ "train_text_encoder": false,
66
+ "gradient_checkpointing": true,
67
+ "noise_scheduler": "flowmatch",
68
+ "optimizer": "adamw8bit",
69
+ "timestep_type": "sigmoid",
70
+ "content_or_style": "balanced",
71
+ "optimizer_params": {
72
+ "weight_decay": 0.0001
73
+ },
74
+ "unload_text_encoder": false,
75
+ "cache_text_embeddings": false,
76
+ "lr": 0.0003,
77
+ "ema_config": {
78
+ "use_ema": true,
79
+ "ema_decay": 0.99
80
+ },
81
+ "skip_first_sample": false,
82
+ "force_first_sample": false,
83
+ "disable_sampling": false,
84
+ "dtype": "bf16",
85
+ "diff_output_preservation": false,
86
+ "diff_output_preservation_multiplier": 1,
87
+ "diff_output_preservation_class": "person",
88
+ "switch_boundary_every": 1
89
+ },
90
+ "model": {
91
+ "name_or_path": "black-forest-labs/FLUX.1-dev",
92
+ "quantize": false,
93
+ "qtype": "qfloat8",
94
+ "quantize_te": true,
95
+ "qtype_te": "qfloat8",
96
+ "arch": "flux",
97
+ "low_vram": false,
98
+ "model_kwargs": {}
99
+ },
100
+ "sample": {
101
+ "sampler": "flowmatch",
102
+ "sample_every": 250,
103
+ "width": 1024,
104
+ "height": 1024,
105
+ "samples": [
106
+ {
107
+ "prompt": "m@n, A young man with a medium tan, golden undertoned skin and short, tightly curled hair. His clean jawline carries a faint stubble, adding sharpness to his look. Wearing bold brown glasses, he tilts his head slightly forward and to the side, eyes meeting the lens with a calm intensity. The soft circular light behind him frames his confident yet effortless pose."
108
+ },
109
+ {
110
+ "prompt": "m@n, A young man with fair skin and a cool undertone, his gaze steady and self-assured. His hair is styled in a casual, tousled cut with natural volume, slightly messy yet effortlessly put together. Wearing a fitted navy crewneck tee, he stands against a plain light background, exuding a clean, modern aesthetic that blends ease with quiet confidence."
111
+ },
112
+ {
113
+ "prompt": "m@n, A young man with fair skin and short, tousled brown hair styled with a natural fringe. He wears bold, rectangular black sunglasses that add sharpness to his look. Dressed in a simple white crewneck tee, he gazes off to the side, his expression calm yet slightly intense. The outdoor light casts soft shadows, enhancing the modern, minimal vibe of the portrait."
114
+ },
115
+ {
116
+ "prompt": "m@n, A young man with a fair skin tone and tousled blond curls, styled casually for a natural look. He wears matte yellow round sunglasses with dark gradient lenses, adding a bold, modern twist. His navy collared shirt contrasts sharply against the light background, making his features and accessories stand out. Captured in a soft side profile, his expression is calm and reflective, exuding understated sophistication."
117
+ }
118
+ ],
119
+ "neg": "",
120
+ "seed": 42,
121
+ "walk_seed": true,
122
+ "guidance_scale": 3,
123
+ "sample_steps": 30,
124
+ "num_frames": 1,
125
+ "fps": 1
126
+ }
127
+ }
128
+ ]
129
+ },
130
+ "meta": {
131
+ "name": "[name]",
132
+ "version": "1.0"
133
+ }
134
+ }
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: m@n
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/1756896634975__000000000_0.jpg
18
+ - text: Sample generation
19
+ output:
20
+ url: samples/1756896652562__000000000_1.jpg
21
+ - text: Sample generation
22
+ output:
23
+ url: samples/1756896670256__000000000_2.jpg
24
+ ---
25
+
26
+ # YOUNG_MEN
27
+
28
+ Model trained with AI Toolkit by Ostris
29
+
30
+ <Gallery />
31
+
32
+ ## Trigger words
33
+
34
+ You should use `m@n` 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/YOUNG_MEN/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/YOUNG_MEN', weight_name='YOUNG_MEN_000000250.safetensors')
50
+ image = pipeline('m@n 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)
YOUNG_MEN.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:499d71cea38aa78480ba02ba8947f1006e92bb0c09de1022364ba29a5c706bb2
3
+ size 343806416
YOUNG_MEN_000000250.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eafeb1967b5204ddcc8249d40e47f47d622a80079af9b20c718ec0681ddff936
3
+ size 343806416
YOUNG_MEN_000000500.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29c3e843261be4129f494af9089525dbb0a2e42148ccb115157f1df41378ba11
3
+ size 343806416
YOUNG_MEN_000000750.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:542fa64aa382ce5cab86a80dfb6bda00147d9535ca5ac6516eabc1db3eec2591
3
+ size 343806416
YOUNG_MEN_000001000.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6365ecf30b0ce370ab9e8360e49b5407c52f02f0064d69d87b619baa189a519
3
+ size 343806416
YOUNG_MEN_000001250.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ff2285e002296318b8db64c5796191cd815b9079ccb9844005f1d57158bc1f9
3
+ size 343806416
YOUNG_MEN_000001500.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad2df8e298a63dc972fefa19fe162bdc147f2ffc6e9b36c60ae6100df814db01
3
+ size 343806416
YOUNG_MEN_000001750.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0c505175b3ef6322da6a0f1754dca64cdf8358849bd59eb54f36dc7332459b9
3
+ size 343806416
YOUNG_MEN_000002000.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6ebbedfc1dfff5b4d26118ae1d9669cdf7f0b922652778fd6ac5c948564c4a4
3
+ size 343806416
YOUNG_MEN_000002250.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf41766985082abf996353670704f0f2d3beeb6e60a171d3aa0513e9b92f7bfe
3
+ size 343806416
config.yaml ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ job: extension
2
+ config:
3
+ name: YOUNG_MEN
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: m@n
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: 10
25
+ save_format: diffusers
26
+ push_to_hub: false
27
+ datasets:
28
+ - folder_path: /workspace/ai-toolkit/datasets/young_men
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
+ - 1280
43
+ - 1536
44
+ controls: []
45
+ shrink_video_to_frames: true
46
+ num_frames: 1
47
+ do_i2v: true
48
+ flip_x: false
49
+ flip_y: false
50
+ train:
51
+ batch_size: 1
52
+ bypass_guidance_embedding: false
53
+ steps: 2500
54
+ gradient_accumulation: 1
55
+ train_unet: true
56
+ train_text_encoder: false
57
+ gradient_checkpointing: true
58
+ noise_scheduler: flowmatch
59
+ optimizer: adamw8bit
60
+ timestep_type: sigmoid
61
+ content_or_style: balanced
62
+ optimizer_params:
63
+ weight_decay: 0.0001
64
+ unload_text_encoder: false
65
+ cache_text_embeddings: false
66
+ lr: 0.0003
67
+ ema_config:
68
+ use_ema: true
69
+ ema_decay: 0.99
70
+ skip_first_sample: false
71
+ force_first_sample: false
72
+ disable_sampling: false
73
+ dtype: bf16
74
+ diff_output_preservation: false
75
+ diff_output_preservation_multiplier: 1
76
+ diff_output_preservation_class: person
77
+ switch_boundary_every: 1
78
+ model:
79
+ name_or_path: black-forest-labs/FLUX.1-dev
80
+ quantize: false
81
+ qtype: qfloat8
82
+ quantize_te: true
83
+ qtype_te: qfloat8
84
+ arch: flux
85
+ low_vram: false
86
+ model_kwargs: {}
87
+ sample:
88
+ sampler: flowmatch
89
+ sample_every: 250
90
+ width: 1024
91
+ height: 1024
92
+ samples:
93
+ - prompt: m@n, A young man with a medium tan, golden undertoned skin and short,
94
+ tightly curled hair. His clean jawline carries a faint stubble, adding sharpness
95
+ to his look. Wearing bold brown glasses, he tilts his head slightly forward
96
+ and to the side, eyes meeting the lens with a calm intensity. The soft circular
97
+ light behind him frames his confident yet effortless pose.
98
+ - prompt: m@n, A young man with fair skin and a cool undertone, his gaze steady
99
+ and self-assured. His hair is styled in a casual, tousled cut with natural
100
+ volume, slightly messy yet effortlessly put together. Wearing a fitted navy
101
+ crewneck tee, he stands against a plain light background, exuding a clean,
102
+ modern aesthetic that blends ease with quiet confidence.
103
+ - prompt: m@n, A young man with fair skin and short, tousled brown hair styled
104
+ with a natural fringe. He wears bold, rectangular black sunglasses that
105
+ add sharpness to his look. Dressed in a simple white crewneck tee, he gazes
106
+ off to the side, his expression calm yet slightly intense. The outdoor light
107
+ casts soft shadows, enhancing the modern, minimal vibe of the portrait.
108
+ - prompt: m@n, A young man with a fair skin tone and tousled blond curls, styled
109
+ casually for a natural look. He wears matte yellow round sunglasses with
110
+ dark gradient lenses, adding a bold, modern twist. His navy collared shirt
111
+ contrasts sharply against the light background, making his features and
112
+ accessories stand out. Captured in a soft side profile, his expression is
113
+ calm and reflective, exuding understated sophistication.
114
+ neg: ''
115
+ seed: 42
116
+ walk_seed: true
117
+ guidance_scale: 3
118
+ sample_steps: 30
119
+ num_frames: 1
120
+ fps: 1
121
+ meta:
122
+ name: YOUNG_MEN
123
+ 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:568c3d1feeb08b8fa2d1d6154abd8e33b553a87b704ead8388e7e889f8af6ee0
3
+ size 350203413
samples/1756896634975__000000000_0.jpg ADDED
samples/1756896652562__000000000_1.jpg ADDED
samples/1756896670256__000000000_2.jpg ADDED
samples/1756896688056__000000000_3.jpg ADDED
samples/1756897468002__000000250_0.jpg ADDED
samples/1756897485885__000000250_1.jpg ADDED
samples/1756897503823__000000250_2.jpg ADDED
samples/1756897521692__000000250_3.jpg ADDED
samples/1756898302700__000000500_0.jpg ADDED
samples/1756898320545__000000500_1.jpg ADDED
samples/1756898338462__000000500_2.jpg ADDED
samples/1756898356360__000000500_3.jpg ADDED
samples/1756899141196__000000750_0.jpg ADDED
samples/1756899159050__000000750_1.jpg ADDED
samples/1756899176970__000000750_2.jpg ADDED
samples/1756899194863__000000750_3.jpg ADDED
samples/1756899990684__000001000_0.jpg ADDED
samples/1756900008525__000001000_1.jpg ADDED
samples/1756900026433__000001000_2.jpg ADDED
samples/1756900044326__000001000_3.jpg ADDED
samples/1756900800923__000001250_0.jpg ADDED
samples/1756900818767__000001250_1.jpg ADDED
samples/1756900836687__000001250_2.jpg ADDED
samples/1756900854556__000001250_3.jpg ADDED
samples/1756901639831__000001500_0.jpg ADDED
samples/1756901657734__000001500_1.jpg ADDED
samples/1756901675699__000001500_2.jpg ADDED
samples/1756901693587__000001500_3.jpg ADDED
samples/1756902489388__000001750_0.jpg ADDED
samples/1756902507261__000001750_1.jpg ADDED
samples/1756902525185__000001750_2.jpg ADDED
samples/1756902543072__000001750_3.jpg ADDED
samples/1756903326115__000002000_0.jpg ADDED
samples/1756903343994__000002000_1.jpg ADDED
samples/1756903361947__000002000_2.jpg ADDED