Sri2901 commited on
Commit
533926a
·
verified ·
1 Parent(s): 3948d0b

Upload model via CLI

Browse files
Files changed (49) hide show
  1. .job_config.json +133 -0
  2. M_Sunglasses.safetensors +3 -0
  3. M_Sunglasses_000000250.safetensors +3 -0
  4. M_Sunglasses_000000500.safetensors +3 -0
  5. M_Sunglasses_000000750.safetensors +3 -0
  6. M_Sunglasses_000001000.safetensors +3 -0
  7. M_Sunglasses_000001250.safetensors +3 -0
  8. M_Sunglasses_000001500.safetensors +3 -0
  9. M_Sunglasses_000001750.safetensors +3 -0
  10. README.md +54 -0
  11. config.yaml +123 -0
  12. log.txt +0 -0
  13. optimizer.pt +3 -0
  14. samples/1756188753236__000000000_0.jpg +0 -0
  15. samples/1756188770813__000000000_1.jpg +0 -0
  16. samples/1756188788435__000000000_2.jpg +0 -0
  17. samples/1756188806181__000000000_3.jpg +0 -0
  18. samples/1756189625117__000000250_0.jpg +0 -0
  19. samples/1756189643040__000000250_1.jpg +0 -0
  20. samples/1756189660988__000000250_2.jpg +0 -0
  21. samples/1756189678983__000000250_3.jpg +0 -0
  22. samples/1756190485454__000000500_0.jpg +0 -0
  23. samples/1756190503441__000000500_1.jpg +0 -0
  24. samples/1756190521393__000000500_2.jpg +0 -0
  25. samples/1756190539379__000000500_3.jpg +0 -0
  26. samples/1756191359823__000000750_0.jpg +0 -0
  27. samples/1756191377758__000000750_1.jpg +0 -0
  28. samples/1756191395703__000000750_2.jpg +0 -0
  29. samples/1756191413674__000000750_3.jpg +0 -0
  30. samples/1756192247256__000001000_0.jpg +0 -0
  31. samples/1756192265213__000001000_1.jpg +0 -0
  32. samples/1756192283192__000001000_2.jpg +0 -0
  33. samples/1756192301192__000001000_3.jpg +0 -0
  34. samples/1756193115040__000001250_0.jpg +0 -0
  35. samples/1756193132942__000001250_1.jpg +0 -0
  36. samples/1756193150811__000001250_2.jpg +0 -0
  37. samples/1756193168733__000001250_3.jpg +0 -0
  38. samples/1756193996742__000001500_0.jpg +0 -0
  39. samples/1756194014680__000001500_1.jpg +0 -0
  40. samples/1756194032601__000001500_2.jpg +0 -0
  41. samples/1756194050542__000001500_3.jpg +0 -0
  42. samples/1756194867448__000001750_0.jpg +0 -0
  43. samples/1756194885364__000001750_1.jpg +0 -0
  44. samples/1756194903271__000001750_2.jpg +0 -0
  45. samples/1756194921203__000001750_3.jpg +0 -0
  46. samples/1756195740786__000002000_0.jpg +0 -0
  47. samples/1756195758699__000002000_1.jpg +0 -0
  48. samples/1756195776608__000002000_2.jpg +0 -0
  49. samples/1756195794523__000002000_3.jpg +0 -0
.job_config.json ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "job": "extension",
3
+ "config": {
4
+ "name": "M_Sunglasses",
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/m_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
+ 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": 2000,
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": "shift",
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.0001,
77
+ "ema_config": {
78
+ "use_ema": true,
79
+ "ema_decay": 0.99
80
+ },
81
+ "skip_first_sample": false,
82
+ "disable_sampling": false,
83
+ "dtype": "bf16",
84
+ "diff_output_preservation": false,
85
+ "diff_output_preservation_multiplier": 1,
86
+ "diff_output_preservation_class": "person",
87
+ "switch_boundary_every": 1
88
+ },
89
+ "model": {
90
+ "name_or_path": "black-forest-labs/FLUX.1-dev",
91
+ "quantize": false,
92
+ "qtype": "qfloat8",
93
+ "quantize_te": true,
94
+ "qtype_te": "qfloat8",
95
+ "arch": "flux",
96
+ "low_vram": false,
97
+ "model_kwargs": {}
98
+ },
99
+ "sample": {
100
+ "sampler": "flowmatch",
101
+ "sample_every": 250,
102
+ "width": 1024,
103
+ "height": 1024,
104
+ "samples": [
105
+ {
106
+ "prompt": "s@ngl@ss,Translucent ice-blue frames rest on a soft grey surface, with streaks of diffused daylight creating fluid shadows around them. The clean backdrop and subtle reflections emphasize the modern, sculptural design of the eyewear."
107
+ },
108
+ {
109
+ "prompt": "s@ngl@ss, A pair of tortoiseshell square-frame glasses is carefully balanced upright against a warm beige surface, lit dramatically from the left. The angled spotlight casts elongated shadows, emphasizing the sculpted frame edges and polished acetate finish. The smooth gradient background adds depth, allowing the rich tones of the eyewear to stand out with timeless sophistication."
110
+ },
111
+ {
112
+ "prompt": "s@ngl@ss, A pair of cream-toned cat-eye sunglasses rests on a rippled satin backdrop, softly illuminated by warm daylight from the right. The flowing fabric casts delicate shadows that echo the curves of the frame, creating a luxurious interplay of texture and shine. The angled composition highlights the bold silhouette while the surface reflections on the lenses add depth and sophistication."
113
+ },
114
+ {
115
+ "prompt": "s@ngl@ss, Resting on a warm golden-beige fabric background, the cat-eye sunglasses take center stage with bold tortoiseshell frames and ivory temples. Soft directional lighting from the upper right casts elegant flowing shadows across the surface, adding depth and movement that accentuate the glossy lenses. The composition feels luxurious and cinematic, with the textured backdrop enhancing the sculptural form of the eyewear."
116
+ }
117
+ ],
118
+ "neg": "",
119
+ "seed": 42,
120
+ "walk_seed": true,
121
+ "guidance_scale": 3,
122
+ "sample_steps": 30,
123
+ "num_frames": 1,
124
+ "fps": 1
125
+ }
126
+ }
127
+ ]
128
+ },
129
+ "meta": {
130
+ "name": "[name]",
131
+ "version": "1.0"
132
+ }
133
+ }
M_Sunglasses.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06542a56b7199581a4173addb2d98d77fb75c1bb49bcfa76da1daaf08b066542
3
+ size 343806432
M_Sunglasses_000000250.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96b4c58120d588b3c231173474523556ccf5e62a84c7e63d17e22b04a77e7896
3
+ size 343806432
M_Sunglasses_000000500.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae6173aa6c8e5b5ea68c0036818eebcf431a689c55c16701a00a155dcee4b9d9
3
+ size 343806432
M_Sunglasses_000000750.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b9c78c600d0c89cdefa8e1bb83aaceeffbc6a1f6cec0bf3ff71ccd71b54e9fb
3
+ size 343806432
M_Sunglasses_000001000.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b6e4afc8c68e852edfdd06def1fbd36bb161ac3b5691c6102fdfe081694e3c2
3
+ size 343806432
M_Sunglasses_000001250.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b24abf39ca8f6d0d68f1d197e92801e67a0bd5d8df1e3b53c9b90486dc113a3d
3
+ size 343806432
M_Sunglasses_000001500.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ee6ef4c9aa01abc4a8524d759f278aa36cfd5859ca61616e9f720ad9568698a
3
+ size 343806432
M_Sunglasses_000001750.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e4818a142d32ac2cde28002aa2f82ec25b5ae192455e5b6cb91e34e511e0954
3
+ size 343806432
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/1756188753236__000000000_0.jpg
18
+ - text: Sample generation
19
+ output:
20
+ url: samples/1756188770813__000000000_1.jpg
21
+ - text: Sample generation
22
+ output:
23
+ url: samples/1756188788435__000000000_2.jpg
24
+ ---
25
+
26
+ # M_Sunglasses
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/M_Sunglasses/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/M_Sunglasses', weight_name='M_Sunglasses_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)
config.yaml ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ job: extension
2
+ config:
3
+ name: M_Sunglasses
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/m_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
+ - 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: 2000
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: shift
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.0001
67
+ ema_config:
68
+ use_ema: true
69
+ ema_decay: 0.99
70
+ skip_first_sample: false
71
+ disable_sampling: false
72
+ dtype: bf16
73
+ diff_output_preservation: false
74
+ diff_output_preservation_multiplier: 1
75
+ diff_output_preservation_class: person
76
+ switch_boundary_every: 1
77
+ model:
78
+ name_or_path: black-forest-labs/FLUX.1-dev
79
+ quantize: false
80
+ qtype: qfloat8
81
+ quantize_te: true
82
+ qtype_te: qfloat8
83
+ arch: flux
84
+ low_vram: false
85
+ model_kwargs: {}
86
+ sample:
87
+ sampler: flowmatch
88
+ sample_every: 250
89
+ width: 1024
90
+ height: 1024
91
+ samples:
92
+ - prompt: s@ngl@ss,Translucent ice-blue frames rest on a soft grey surface,
93
+ with streaks of diffused daylight creating fluid shadows around them. The
94
+ clean backdrop and subtle reflections emphasize the modern, sculptural design
95
+ of the eyewear.
96
+ - prompt: s@ngl@ss, A pair of tortoiseshell square-frame glasses is carefully
97
+ balanced upright against a warm beige surface, lit dramatically from the
98
+ left. The angled spotlight casts elongated shadows, emphasizing the sculpted
99
+ frame edges and polished acetate finish. The smooth gradient background
100
+ adds depth, allowing the rich tones of the eyewear to stand out with timeless
101
+ sophistication.
102
+ - prompt: s@ngl@ss, A pair of cream-toned cat-eye sunglasses rests on a rippled
103
+ satin backdrop, softly illuminated by warm daylight from the right. The
104
+ flowing fabric casts delicate shadows that echo the curves of the frame,
105
+ creating a luxurious interplay of texture and shine. The angled composition
106
+ highlights the bold silhouette while the surface reflections on the lenses
107
+ add depth and sophistication.
108
+ - prompt: s@ngl@ss, Resting on a warm golden-beige fabric background, the cat-eye
109
+ sunglasses take center stage with bold tortoiseshell frames and ivory temples.
110
+ Soft directional lighting from the upper right casts elegant flowing shadows
111
+ across the surface, adding depth and movement that accentuate the glossy
112
+ lenses. The composition feels luxurious and cinematic, with the textured
113
+ backdrop enhancing the sculptural form of the eyewear.
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: M_Sunglasses
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:708c664488a0a08fc94666605b3609af4ef9388428cdd75d81549ebf93dd82ce
3
+ size 350203413
samples/1756188753236__000000000_0.jpg ADDED
samples/1756188770813__000000000_1.jpg ADDED
samples/1756188788435__000000000_2.jpg ADDED
samples/1756188806181__000000000_3.jpg ADDED
samples/1756189625117__000000250_0.jpg ADDED
samples/1756189643040__000000250_1.jpg ADDED
samples/1756189660988__000000250_2.jpg ADDED
samples/1756189678983__000000250_3.jpg ADDED
samples/1756190485454__000000500_0.jpg ADDED
samples/1756190503441__000000500_1.jpg ADDED
samples/1756190521393__000000500_2.jpg ADDED
samples/1756190539379__000000500_3.jpg ADDED
samples/1756191359823__000000750_0.jpg ADDED
samples/1756191377758__000000750_1.jpg ADDED
samples/1756191395703__000000750_2.jpg ADDED
samples/1756191413674__000000750_3.jpg ADDED
samples/1756192247256__000001000_0.jpg ADDED
samples/1756192265213__000001000_1.jpg ADDED
samples/1756192283192__000001000_2.jpg ADDED
samples/1756192301192__000001000_3.jpg ADDED
samples/1756193115040__000001250_0.jpg ADDED
samples/1756193132942__000001250_1.jpg ADDED
samples/1756193150811__000001250_2.jpg ADDED
samples/1756193168733__000001250_3.jpg ADDED
samples/1756193996742__000001500_0.jpg ADDED
samples/1756194014680__000001500_1.jpg ADDED
samples/1756194032601__000001500_2.jpg ADDED
samples/1756194050542__000001500_3.jpg ADDED
samples/1756194867448__000001750_0.jpg ADDED
samples/1756194885364__000001750_1.jpg ADDED
samples/1756194903271__000001750_2.jpg ADDED
samples/1756194921203__000001750_3.jpg ADDED
samples/1756195740786__000002000_0.jpg ADDED
samples/1756195758699__000002000_1.jpg ADDED
samples/1756195776608__000002000_2.jpg ADDED
samples/1756195794523__000002000_3.jpg ADDED