Sri2901 commited on
Commit
0a0fb43
·
verified ·
1 Parent(s): a903bcc

Upload model via CLI

Browse files
Files changed (43) hide show
  1. .gitattributes +8 -0
  2. .job_config.json +114 -0
  3. README.md +61 -0
  4. config.yaml +98 -0
  5. log.txt +0 -0
  6. optimizer.pt +3 -0
  7. samples/.ipynb_checkpoints/1753253133330__000000000_0-checkpoint.jpg +0 -0
  8. samples/.ipynb_checkpoints/1753258388649__000001250_0-checkpoint.jpg +0 -0
  9. samples/.ipynb_checkpoints/1753259492171__000001500_3-checkpoint.jpg +0 -0
  10. samples/1753253133330__000000000_0.jpg +0 -0
  11. samples/1753253150552__000000000_1.jpg +0 -0
  12. samples/1753253167817__000000000_2.jpg +3 -0
  13. samples/1753253185189__000000000_3.jpg +0 -0
  14. samples/1753254182910__000000250_0.jpg +0 -0
  15. samples/1753254200285__000000250_1.jpg +0 -0
  16. samples/1753254217724__000000250_2.jpg +3 -0
  17. samples/1753254235037__000000250_3.jpg +0 -0
  18. samples/1753255229829__000000500_0.jpg +0 -0
  19. samples/1753255247208__000000500_1.jpg +0 -0
  20. samples/1753255264626__000000500_2.jpg +3 -0
  21. samples/1753255281958__000000500_3.jpg +0 -0
  22. samples/1753256278336__000000750_0.jpg +0 -0
  23. samples/1753256295744__000000750_1.jpg +0 -0
  24. samples/1753256313167__000000750_2.jpg +3 -0
  25. samples/1753256330494__000000750_3.jpg +3 -0
  26. samples/1753257332598__000001000_0.jpg +0 -0
  27. samples/1753257349993__000001000_1.jpg +0 -0
  28. samples/1753257367415__000001000_2.jpg +3 -0
  29. samples/1753257384731__000001000_3.jpg +3 -0
  30. samples/1753258388649__000001250_0.jpg +0 -0
  31. samples/1753258406130__000001250_1.jpg +0 -0
  32. samples/1753258423664__000001250_2.jpg +3 -0
  33. samples/1753258441100__000001250_3.jpg +0 -0
  34. samples/1753259440055__000001500_0.jpg +0 -0
  35. samples/1753259457442__000001500_1.jpg +0 -0
  36. samples/1753259474827__000001500_2.jpg +0 -0
  37. samples/1753259492171__000001500_3.jpg +0 -0
  38. watch_styling_photography.safetensors +3 -0
  39. watch_styling_photography_000000250.safetensors +3 -0
  40. watch_styling_photography_000000500.safetensors +3 -0
  41. watch_styling_photography_000000750.safetensors +3 -0
  42. watch_styling_photography_000001000.safetensors +3 -0
  43. watch_styling_photography_000001250.safetensors +3 -0
.gitattributes CHANGED
@@ -33,3 +33,11 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ samples/1753253167817__000000000_2.jpg filter=lfs diff=lfs merge=lfs -text
37
+ samples/1753254217724__000000250_2.jpg filter=lfs diff=lfs merge=lfs -text
38
+ samples/1753255264626__000000500_2.jpg filter=lfs diff=lfs merge=lfs -text
39
+ samples/1753256313167__000000750_2.jpg filter=lfs diff=lfs merge=lfs -text
40
+ samples/1753256330494__000000750_3.jpg filter=lfs diff=lfs merge=lfs -text
41
+ samples/1753257367415__000001000_2.jpg filter=lfs diff=lfs merge=lfs -text
42
+ samples/1753257384731__000001000_3.jpg filter=lfs diff=lfs merge=lfs -text
43
+ samples/1753258423664__000001250_2.jpg filter=lfs diff=lfs merge=lfs -text
.job_config.json ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "job": "extension",
3
+ "config": {
4
+ "name": "watch_styling_photography",
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": "wphoto",
12
+ "performance_log_every": 10,
13
+ "network": {
14
+ "type": "lora",
15
+ "linear": 16,
16
+ "linear_alpha": 16,
17
+ "conv": 4,
18
+ "conv_alpha": 4,
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": 6,
29
+ "save_format": "diffusers",
30
+ "push_to_hub": false
31
+ },
32
+ "datasets": [
33
+ {
34
+ "folder_path": "/workspace/ai-toolkit/datasets/wphoto",
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.1,
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
+ }
53
+ ],
54
+ "train": {
55
+ "batch_size": 1,
56
+ "bypass_guidance_embedding": false,
57
+ "steps": 1500,
58
+ "gradient_accumulation": 1,
59
+ "train_unet": true,
60
+ "train_text_encoder": false,
61
+ "gradient_checkpointing": true,
62
+ "noise_scheduler": "flowmatch",
63
+ "optimizer": "adamw8bit",
64
+ "timestep_type": "shift",
65
+ "content_or_style": "style",
66
+ "optimizer_params": {
67
+ "weight_decay": 0.01
68
+ },
69
+ "unload_text_encoder": false,
70
+ "lr": 0.0001,
71
+ "ema_config": {
72
+ "use_ema": true,
73
+ "ema_decay": 0.99
74
+ },
75
+ "dtype": "bf16",
76
+ "diff_output_preservation": false,
77
+ "diff_output_preservation_multiplier": 1,
78
+ "diff_output_preservation_class": "person"
79
+ },
80
+ "model": {
81
+ "name_or_path": "black-forest-labs/FLUX.1-dev",
82
+ "quantize": false,
83
+ "quantize_te": true,
84
+ "arch": "flux",
85
+ "low_vram": false,
86
+ "model_kwargs": {}
87
+ },
88
+ "sample": {
89
+ "sampler": "flowmatch",
90
+ "sample_every": 250,
91
+ "width": 1024,
92
+ "height": 1024,
93
+ "prompts": [
94
+ "wphoto, luxury watch on marble surface, elegant background bokeh, professional product styling",
95
+ "wphoto, rose gold timepiece with wooden background, warm ambient lighting, sophisticated composition",
96
+ "wphoto, vintage watch collection arranged artistically, rich textured background, premium photography",
97
+ "wphoto, single watch positioned on silk fabric, soft studio lighting, luxury brand photography"
98
+ ],
99
+ "neg": "",
100
+ "seed": 42,
101
+ "walk_seed": true,
102
+ "guidance_scale": 3,
103
+ "sample_steps": 30,
104
+ "num_frames": 1,
105
+ "fps": 1
106
+ }
107
+ }
108
+ ]
109
+ },
110
+ "meta": {
111
+ "name": "[name]",
112
+ "version": "1.0"
113
+ }
114
+ }
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: wphoto
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: wphoto, luxury watch on marble surface, elegant background bokeh, professional
16
+ product styling
17
+ output:
18
+ url: samples/1753259492171__000001500_3.jpg
19
+ - text: wphoto, rose gold timepiece with wooden background, warm ambient lighting,
20
+ sophisticated composition
21
+ output:
22
+ url: samples/1753259474827__000001500_2.jpg
23
+ - text: wphoto, vintage watch collection arranged artistically, rich textured background,
24
+ premium photography
25
+ output:
26
+ url: samples/1753259457442__000001500_1.jpg
27
+ - text: wphoto, single watch positioned on silk fabric, soft studio lighting, luxury
28
+ brand photography
29
+ output:
30
+ url: samples/1753259440055__000001500_0.jpg
31
+ ---
32
+
33
+ # watch_styling_photography
34
+
35
+ Model trained with AI Toolkit by Ostris
36
+
37
+ <Gallery />
38
+
39
+ ## Trigger words
40
+
41
+ You should use `wphoto` to trigger the image generation.
42
+
43
+ ## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, etc.
44
+
45
+ Weights for this model are available in Safetensors format.
46
+
47
+ [Download](/username/watch_styling_photography/tree/main) them in the Files & versions tab.
48
+
49
+ ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
50
+
51
+ ```py
52
+ from diffusers import AutoPipelineForText2Image
53
+ import torch
54
+
55
+ pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
56
+ pipeline.load_lora_weights('username/watch_styling_photography', weight_name='watch_styling_photography.safetensors')
57
+ image = pipeline('wphoto, luxury watch on marble surface, elegant background bokeh, professional product styling').images[0]
58
+ image.save("my_image.png")
59
+ ```
60
+
61
+ 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,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ job: extension
2
+ config:
3
+ name: watch_styling_photography
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: wphoto
10
+ performance_log_every: 10
11
+ network:
12
+ type: lora
13
+ linear: 16
14
+ linear_alpha: 16
15
+ conv: 4
16
+ conv_alpha: 4
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: 6
25
+ save_format: diffusers
26
+ push_to_hub: false
27
+ datasets:
28
+ - folder_path: /workspace/ai-toolkit/datasets/wphoto
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.1
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
+ train:
46
+ batch_size: 1
47
+ bypass_guidance_embedding: false
48
+ steps: 1500
49
+ gradient_accumulation: 1
50
+ train_unet: true
51
+ train_text_encoder: false
52
+ gradient_checkpointing: true
53
+ noise_scheduler: flowmatch
54
+ optimizer: adamw8bit
55
+ timestep_type: shift
56
+ content_or_style: style
57
+ optimizer_params:
58
+ weight_decay: 0.01
59
+ unload_text_encoder: false
60
+ lr: 0.0001
61
+ ema_config:
62
+ use_ema: true
63
+ ema_decay: 0.99
64
+ dtype: bf16
65
+ diff_output_preservation: false
66
+ diff_output_preservation_multiplier: 1
67
+ diff_output_preservation_class: person
68
+ model:
69
+ name_or_path: black-forest-labs/FLUX.1-dev
70
+ quantize: false
71
+ quantize_te: true
72
+ arch: flux
73
+ low_vram: false
74
+ model_kwargs: {}
75
+ sample:
76
+ sampler: flowmatch
77
+ sample_every: 250
78
+ width: 1024
79
+ height: 1024
80
+ prompts:
81
+ - wphoto, luxury watch on marble surface, elegant background bokeh, professional
82
+ product styling
83
+ - wphoto, rose gold timepiece with wooden background, warm ambient lighting,
84
+ sophisticated composition
85
+ - wphoto, vintage watch collection arranged artistically, rich textured background,
86
+ premium photography
87
+ - wphoto, single watch positioned on silk fabric, soft studio lighting, luxury
88
+ brand photography
89
+ neg: ''
90
+ seed: 42
91
+ walk_seed: true
92
+ guidance_scale: 3
93
+ sample_steps: 30
94
+ num_frames: 1
95
+ fps: 1
96
+ meta:
97
+ name: watch_styling_photography
98
+ 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:f598d69aada2377d505a2142cc5588ff7f8478c3d0e13bcda81c430de54742ec
3
+ size 175676612
samples/.ipynb_checkpoints/1753253133330__000000000_0-checkpoint.jpg ADDED
samples/.ipynb_checkpoints/1753258388649__000001250_0-checkpoint.jpg ADDED
samples/.ipynb_checkpoints/1753259492171__000001500_3-checkpoint.jpg ADDED
samples/1753253133330__000000000_0.jpg ADDED
samples/1753253150552__000000000_1.jpg ADDED
samples/1753253167817__000000000_2.jpg ADDED

Git LFS Details

  • SHA256: ba0ce26f1bc87e07792ead0de36a8e81d51f0ee788efdadf4d9718d24f7ea5d3
  • Pointer size: 131 Bytes
  • Size of remote file: 122 kB
samples/1753253185189__000000000_3.jpg ADDED
samples/1753254182910__000000250_0.jpg ADDED
samples/1753254200285__000000250_1.jpg ADDED
samples/1753254217724__000000250_2.jpg ADDED

Git LFS Details

  • SHA256: 1ac0d929a03c21604710e7f3af1c9af689f3345121be165b5316c20accb8acfc
  • Pointer size: 131 Bytes
  • Size of remote file: 135 kB
samples/1753254235037__000000250_3.jpg ADDED
samples/1753255229829__000000500_0.jpg ADDED
samples/1753255247208__000000500_1.jpg ADDED
samples/1753255264626__000000500_2.jpg ADDED

Git LFS Details

  • SHA256: edfd599d6a6325cf40e924eabad31f201e9fbc9a8db72f00cf1292d78a2e5739
  • Pointer size: 131 Bytes
  • Size of remote file: 116 kB
samples/1753255281958__000000500_3.jpg ADDED
samples/1753256278336__000000750_0.jpg ADDED
samples/1753256295744__000000750_1.jpg ADDED
samples/1753256313167__000000750_2.jpg ADDED

Git LFS Details

  • SHA256: 503d62b38a5d228376a2a57f862ada909ec693b092fc60502d8ad07450fa4514
  • Pointer size: 131 Bytes
  • Size of remote file: 125 kB
samples/1753256330494__000000750_3.jpg ADDED

Git LFS Details

  • SHA256: b57a93068c2ef15e6e2f04dfe84d3fd3e8ee0e86e489981164a34c558a3ab6e6
  • Pointer size: 131 Bytes
  • Size of remote file: 102 kB
samples/1753257332598__000001000_0.jpg ADDED
samples/1753257349993__000001000_1.jpg ADDED
samples/1753257367415__000001000_2.jpg ADDED

Git LFS Details

  • SHA256: 9c089cb267e6d0f6b259bf5d8063a1682f4f67a635ce689fc6cacd00db14a276
  • Pointer size: 131 Bytes
  • Size of remote file: 135 kB
samples/1753257384731__000001000_3.jpg ADDED

Git LFS Details

  • SHA256: 3161e7f04217b6447a01457ff18cea25d1d7cf4c10f7b1a9babbdb2cfc1453de
  • Pointer size: 131 Bytes
  • Size of remote file: 115 kB
samples/1753258388649__000001250_0.jpg ADDED
samples/1753258406130__000001250_1.jpg ADDED
samples/1753258423664__000001250_2.jpg ADDED

Git LFS Details

  • SHA256: 6a361d05818e1ed1eda7855e04cef57311fca4ef354eaa38bee12fa52afbf75f
  • Pointer size: 131 Bytes
  • Size of remote file: 111 kB
samples/1753258441100__000001250_3.jpg ADDED
samples/1753259440055__000001500_0.jpg ADDED
samples/1753259457442__000001500_1.jpg ADDED
samples/1753259474827__000001500_2.jpg ADDED
samples/1753259492171__000001500_3.jpg ADDED
watch_styling_photography.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:659fb940942b1c977ab420f7e7f84ed116b9fb60281c5fadfd79486339d9bb70
3
+ size 171970416
watch_styling_photography_000000250.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9d7500e47821a97b26651fd88ee748a5ef17b5c69e50ce9d65bd94553a2b6c3
3
+ size 171970416
watch_styling_photography_000000500.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a4e2032b6b41bad9880b03f23a4004ffd226dc64572cf9c5136450d2e67bdf7
3
+ size 171970416
watch_styling_photography_000000750.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:693a5d3cf18f879d88ee42575ed7be43d3d05549f0cb7835ce534d2fdf10f843
3
+ size 171970416
watch_styling_photography_000001000.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c99e44199d8ca6627a0d8e9cc9c22df32f686a524ccf975fdcffd29f33982d38
3
+ size 171970416
watch_styling_photography_000001250.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d22109908cc6a70aeeec99d24cf6c96743c7a146c88b1b33a32f3cf2558639c1
3
+ size 171970416