briefwork commited on
Commit
36c981f
·
verified ·
1 Parent(s): 841af25

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,29 @@ 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
+ image-0.png filter=lfs diff=lfs merge=lfs -text
37
+ image-1.png filter=lfs diff=lfs merge=lfs -text
38
+ image-10.png filter=lfs diff=lfs merge=lfs -text
39
+ image-11.png filter=lfs diff=lfs merge=lfs -text
40
+ image-12.png filter=lfs diff=lfs merge=lfs -text
41
+ image-13.png filter=lfs diff=lfs merge=lfs -text
42
+ image-14.png filter=lfs diff=lfs merge=lfs -text
43
+ image-15.png filter=lfs diff=lfs merge=lfs -text
44
+ image-16.png filter=lfs diff=lfs merge=lfs -text
45
+ image-17.png filter=lfs diff=lfs merge=lfs -text
46
+ image-18.png filter=lfs diff=lfs merge=lfs -text
47
+ image-19.png filter=lfs diff=lfs merge=lfs -text
48
+ image-2.png filter=lfs diff=lfs merge=lfs -text
49
+ image-20.png filter=lfs diff=lfs merge=lfs -text
50
+ image-21.png filter=lfs diff=lfs merge=lfs -text
51
+ image-22.png filter=lfs diff=lfs merge=lfs -text
52
+ image-23.png filter=lfs diff=lfs merge=lfs -text
53
+ image-24.png filter=lfs diff=lfs merge=lfs -text
54
+ image-25.png filter=lfs diff=lfs merge=lfs -text
55
+ image-3.png filter=lfs diff=lfs merge=lfs -text
56
+ image-4.png filter=lfs diff=lfs merge=lfs -text
57
+ image-5.png filter=lfs diff=lfs merge=lfs -text
58
+ image-6.png filter=lfs diff=lfs merge=lfs -text
59
+ image-7.png filter=lfs diff=lfs merge=lfs -text
60
+ image-8.png filter=lfs diff=lfs merge=lfs -text
61
+ image-9.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - stable-diffusion-xl
4
+ - stable-diffusion-xl-diffusers
5
+ - text-to-image
6
+ - diffusers
7
+ - lora
8
+ - template:sd-lora
9
+ widget:
10
+ - text: in the style of <s0><s1>
11
+ output:
12
+ url: image-0.png
13
+ - text: in the style of <s0><s1>
14
+ output:
15
+ url: image-1.png
16
+ - text: in the style of <s0><s1>
17
+ output:
18
+ url: image-2.png
19
+ - text: in the style of <s0><s1>
20
+ output:
21
+ url: image-3.png
22
+ - text: in the style of <s0><s1>
23
+ output:
24
+ url: image-4.png
25
+ - text: in the style of <s0><s1>
26
+ output:
27
+ url: image-5.png
28
+ - text: in the style of <s0><s1>
29
+ output:
30
+ url: image-6.png
31
+ - text: in the style of <s0><s1>
32
+ output:
33
+ url: image-7.png
34
+ - text: in the style of <s0><s1>
35
+ output:
36
+ url: image-8.png
37
+ - text: in the style of <s0><s1>
38
+ output:
39
+ url: image-9.png
40
+ - text: in the style of <s0><s1>
41
+ output:
42
+ url: image-10.png
43
+ - text: in the style of <s0><s1>
44
+ output:
45
+ url: image-11.png
46
+ - text: in the style of <s0><s1>
47
+ output:
48
+ url: image-12.png
49
+ - text: in the style of <s0><s1>
50
+ output:
51
+ url: image-13.png
52
+ - text: in the style of <s0><s1>
53
+ output:
54
+ url: image-14.png
55
+ - text: in the style of <s0><s1>
56
+ output:
57
+ url: image-15.png
58
+ - text: in the style of <s0><s1>
59
+ output:
60
+ url: image-16.png
61
+ - text: in the style of <s0><s1>
62
+ output:
63
+ url: image-17.png
64
+ - text: in the style of <s0><s1>
65
+ output:
66
+ url: image-18.png
67
+ - text: in the style of <s0><s1>
68
+ output:
69
+ url: image-19.png
70
+ - text: in the style of <s0><s1>
71
+ output:
72
+ url: image-20.png
73
+ - text: in the style of <s0><s1>
74
+ output:
75
+ url: image-21.png
76
+ - text: in the style of <s0><s1>
77
+ output:
78
+ url: image-22.png
79
+ - text: in the style of <s0><s1>
80
+ output:
81
+ url: image-23.png
82
+ - text: in the style of <s0><s1>
83
+ output:
84
+ url: image-24.png
85
+ - text: in the style of <s0><s1>
86
+ output:
87
+ url: image-25.png
88
+ base_model: stabilityai/stable-diffusion-xl-base-1.0
89
+ instance_prompt: in the style of <s0><s1>
90
+ license: openrail++
91
+ ---
92
+
93
+ # SDXL LoRA DreamBooth - briefwork/bobobo-lora
94
+
95
+ <Gallery />
96
+
97
+ ## Model description
98
+
99
+ ### These are briefwork/bobobo-lora LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
100
+
101
+ ## Download model
102
+
103
+ ### Use it with UIs such as AUTOMATIC1111, Comfy UI, SD.Next, Invoke
104
+
105
+ - **LoRA**: download **[`bobobo-lora.safetensors` here 💾](/briefwork/bobobo-lora/blob/main/bobobo-lora.safetensors)**.
106
+ - Place it on your `models/Lora` folder.
107
+ - On AUTOMATIC1111, load the LoRA by adding `<lora:bobobo-lora:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
108
+ - *Embeddings*: download **[`bobobo-lora_emb.safetensors` here 💾](/briefwork/bobobo-lora/blob/main/bobobo-lora_emb.safetensors)**.
109
+ - Place it on it on your `embeddings` folder
110
+ - Use it by adding `bobobo-lora_emb` to your prompt. For example, `in the style of bobobo-lora_emb`
111
+ (you need both the LoRA and the embeddings as they were trained together for this LoRA)
112
+
113
+
114
+ ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
115
+
116
+ ```py
117
+ from diffusers import AutoPipelineForText2Image
118
+ import torch
119
+ from huggingface_hub import hf_hub_download
120
+ from safetensors.torch import load_file
121
+
122
+ pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to('cuda')
123
+ pipeline.load_lora_weights('briefwork/bobobo-lora', weight_name='pytorch_lora_weights.safetensors')
124
+ embedding_path = hf_hub_download(repo_id='briefwork/bobobo-lora', filename='bobobo-lora_emb.safetensors' repo_type="model")
125
+ state_dict = load_file(embedding_path)
126
+ pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)
127
+ pipeline.load_textual_inversion(state_dict["clip_g"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder_2, tokenizer=pipeline.tokenizer_2)
128
+
129
+ image = pipeline('in the style of <s0><s1>').images[0]
130
+ ```
131
+
132
+ 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)
133
+
134
+ ## Trigger words
135
+
136
+ To trigger image generation of trained concept(or concepts) replace each concept identifier in you prompt with the new inserted tokens:
137
+
138
+ to trigger concept `TOK` → use `<s0><s1>` in your prompt
139
+
140
+
141
+
142
+ ## Details
143
+ All [Files & versions](/briefwork/bobobo-lora/tree/main).
144
+
145
+ The weights were trained using [🧨 diffusers Advanced Dreambooth Training Script](https://github.com/huggingface/diffusers/blob/main/examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py).
146
+
147
+ LoRA for the text encoder was enabled. False.
148
+
149
+ Pivotal tuning was enabled: True.
150
+
151
+ Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
152
+
bobobo-lora.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e495cf98c6aad6bcb4cd47b20862cb40ac99b882086e983fd081a9f10589f39
3
+ size 186046568
bobobo-lora_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c693b6a6f462006a36650ef22bb0553049b4a7f2340a75185842752fd8e90ab5
3
+ size 16536
image-0.png ADDED

Git LFS Details

  • SHA256: 62d5cfcd272e16ed439d9e245d12626950938fc5ca6219ed46725af5e9164ba9
  • Pointer size: 132 Bytes
  • Size of remote file: 1.6 MB
image-1.png ADDED

Git LFS Details

  • SHA256: 7cd0f4147a776fe9fc56adfd5424e70f0cbca94c2f4667e43daf11e5eb2f4ac0
  • Pointer size: 132 Bytes
  • Size of remote file: 1.72 MB
image-10.png ADDED

Git LFS Details

  • SHA256: b1c3de614e3b024cda801fd437ccf1ddd02d70b40d6e8ac86f3920fb5184402d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.6 MB
image-11.png ADDED

Git LFS Details

  • SHA256: 42a16b6d75f7f3e5d6cd1cc3cb2894a75e3a422d8198c9834f4bc666b4b407db
  • Pointer size: 132 Bytes
  • Size of remote file: 1.48 MB
image-12.png ADDED

Git LFS Details

  • SHA256: 174389edf15c47af05a9f6fb8021bc67a86596c464bad15ce4cb780fea6317dd
  • Pointer size: 132 Bytes
  • Size of remote file: 1.63 MB
image-13.png ADDED

Git LFS Details

  • SHA256: 23b644069850e0467ad55cbf038211ed309a5bdb7190d729d65c0206b036ce4f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.57 MB
image-14.png ADDED

Git LFS Details

  • SHA256: ddbf8e86cea9bbb9a864a32dc28c99ce7ffeb6a489712197691f6ff2fe6f7d71
  • Pointer size: 132 Bytes
  • Size of remote file: 1.48 MB
image-15.png ADDED

Git LFS Details

  • SHA256: 1841c4aed2337c0b617456d54aa6ea35a0893ce609dfae6e5fe4a1525a0b4b88
  • Pointer size: 132 Bytes
  • Size of remote file: 1.59 MB
image-16.png ADDED

Git LFS Details

  • SHA256: 0d150f6b18bc6b07cf3407d14114e9ea622891ca56d7274fbbd846c85f09479a
  • Pointer size: 132 Bytes
  • Size of remote file: 1.58 MB
image-17.png ADDED

Git LFS Details

  • SHA256: 6b4ce46f5cad993147cef99969065b3712e746d6e59f7962901151cbf6538e18
  • Pointer size: 132 Bytes
  • Size of remote file: 1.62 MB
image-18.png ADDED

Git LFS Details

  • SHA256: cb9e36443c44e9343f7af7bef824f0d46139b710d8f592f00faae3d5d86d7f8b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.59 MB
image-19.png ADDED

Git LFS Details

  • SHA256: ab61828c668a0a478baef5231b525281218696c227af0bd64f8844dfe0007831
  • Pointer size: 132 Bytes
  • Size of remote file: 1.46 MB
image-2.png ADDED

Git LFS Details

  • SHA256: 557bf19b2f851722287e46316666261b11c525d73d1160f822b0b89fcb8b9f47
  • Pointer size: 132 Bytes
  • Size of remote file: 1.74 MB
image-20.png ADDED

Git LFS Details

  • SHA256: c75c338cf5b50a8be4ad375b3a5ed3124c1cd2dbbb118406fa24a6c3a8e3f771
  • Pointer size: 132 Bytes
  • Size of remote file: 1.48 MB
image-21.png ADDED

Git LFS Details

  • SHA256: 46bd43bea81cb00b4b93e5a78f8374de0f23ff044343c5d43fe5897a5dbd6fd4
  • Pointer size: 132 Bytes
  • Size of remote file: 1.62 MB
image-22.png ADDED

Git LFS Details

  • SHA256: 73830b2b6f286b9e97706454d01e55cbe327ad70051bcf00918b3c9718f8cec2
  • Pointer size: 132 Bytes
  • Size of remote file: 1.57 MB
image-23.png ADDED

Git LFS Details

  • SHA256: df5f21fae7af951128c84f403b996c9616f7f2a56b528cd3d4bedbb42f0982ac
  • Pointer size: 132 Bytes
  • Size of remote file: 1.61 MB
image-24.png ADDED

Git LFS Details

  • SHA256: 861388369befe145c1c66d665688f4fe7e5c0e1174312461d38c0a375926b73b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.56 MB
image-25.png ADDED

Git LFS Details

  • SHA256: fe144f3fae509fa725cb580f8ca9b9bd3a0e9757c88e75193a4c8e956b08eff3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.6 MB
image-3.png ADDED

Git LFS Details

  • SHA256: 554404af07129fe56205acf875bb319ae5ae976f1f9d18dab4b7b872b0553d74
  • Pointer size: 132 Bytes
  • Size of remote file: 1.67 MB
image-4.png ADDED

Git LFS Details

  • SHA256: a3323cc431f638d44895bceece7712cdb259da07b166186c42b0ec8fec72f1ef
  • Pointer size: 132 Bytes
  • Size of remote file: 1.6 MB
image-5.png ADDED

Git LFS Details

  • SHA256: 5be5fbdc75fc6ce1ea12bee506c66338541de1a4f84c1e0c694b0e30f9149dea
  • Pointer size: 132 Bytes
  • Size of remote file: 1.69 MB
image-6.png ADDED

Git LFS Details

  • SHA256: 09bce1566b0ebd335316765bf91b2c52add0e698fa427242cf68d15d07e65435
  • Pointer size: 132 Bytes
  • Size of remote file: 1.61 MB
image-7.png ADDED

Git LFS Details

  • SHA256: 21ff14da264d771923ca9cc74fda2252318e49e24a637487a55c864b6ce3e9dc
  • Pointer size: 132 Bytes
  • Size of remote file: 1.58 MB
image-8.png ADDED

Git LFS Details

  • SHA256: db225acf5720e9d0b0c013e3cd12250a0ff68e484726bb06945d14a4dc6052c8
  • Pointer size: 132 Bytes
  • Size of remote file: 1.64 MB
image-9.png ADDED

Git LFS Details

  • SHA256: 664341b4de438c8781fdd3fab133c51c6986a7cbbaa17676b00d4e3f0afb507f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.69 MB
logs/dreambooth-lora-sd-xl/1714900514.3725033/events.out.tfevents.1714900514.r-briefwork-autotrain-bobobo-lora-n7354otq-30275-6amb7.182.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9b7576f7c2907e3e94cfd6174fccb6e03ddbf2638893a8f0658382c834eb6f5
3
+ size 3574
logs/dreambooth-lora-sd-xl/1714900514.373798/hparams.yml ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ adam_beta1: 0.9
2
+ adam_beta2: 0.999
3
+ adam_epsilon: 1.0e-08
4
+ adam_weight_decay: 0.0001
5
+ adam_weight_decay_text_encoder: null
6
+ allow_tf32: false
7
+ cache_dir: null
8
+ cache_latents: true
9
+ caption_column: prompt
10
+ center_crop: false
11
+ checkpointing_steps: 100000
12
+ checkpoints_total_limit: null
13
+ class_data_dir: null
14
+ class_prompt: null
15
+ crops_coords_top_left_h: 0
16
+ crops_coords_top_left_w: 0
17
+ dataloader_num_workers: 0
18
+ dataset_config_name: null
19
+ dataset_name: ./e8de4b06-2980-4815-bf12-bda1cfb73dab
20
+ enable_xformers_memory_efficient_attention: false
21
+ gradient_accumulation_steps: 1
22
+ gradient_checkpointing: true
23
+ hub_model_id: null
24
+ hub_token: null
25
+ image_column: image
26
+ instance_data_dir: null
27
+ instance_prompt: in the style of <s0><s1>
28
+ learning_rate: 1.0
29
+ local_rank: -1
30
+ logging_dir: logs
31
+ lr_num_cycles: 1
32
+ lr_power: 1.0
33
+ lr_scheduler: constant
34
+ lr_warmup_steps: 0
35
+ max_grad_norm: 1.0
36
+ max_train_steps: 1000
37
+ mixed_precision: bf16
38
+ noise_offset: 0
39
+ num_class_images: 100
40
+ num_new_tokens_per_abstraction: 2
41
+ num_train_epochs: 77
42
+ num_validation_images: 4
43
+ optimizer: prodigy
44
+ output_dir: bobobo-lora
45
+ pretrained_model_name_or_path: stabilityai/stable-diffusion-xl-base-1.0
46
+ pretrained_vae_model_name_or_path: madebyollin/sdxl-vae-fp16-fix
47
+ prior_generation_precision: null
48
+ prior_loss_weight: 1.0
49
+ prodigy_beta3: null
50
+ prodigy_decouple: true
51
+ prodigy_safeguard_warmup: true
52
+ prodigy_use_bias_correction: true
53
+ push_to_hub: false
54
+ rank: 32
55
+ repeats: 1
56
+ report_to: tensorboard
57
+ resolution: 512
58
+ resume_from_checkpoint: null
59
+ revision: null
60
+ sample_batch_size: 4
61
+ scale_lr: false
62
+ seed: 42
63
+ snr_gamma: null
64
+ text_encoder_lr: 1.0
65
+ token_abstraction: TOK
66
+ train_batch_size: 2
67
+ train_text_encoder: false
68
+ train_text_encoder_frac: 1.0
69
+ train_text_encoder_ti: true
70
+ train_text_encoder_ti_frac: 0.5
71
+ use_8bit_adam: false
72
+ validation_epochs: 50
73
+ validation_prompt: null
74
+ variant: null
75
+ with_prior_preservation: false
logs/dreambooth-lora-sd-xl/events.out.tfevents.1714900514.r-briefwork-autotrain-bobobo-lora-n7354otq-30275-6amb7.182.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:558d3f5afe1354fd66878705881c4e3efa7b1f01e225d5d6a6b7a9bb03310ebc
3
+ size 83834
pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bdf802b5506391f1c83fe73e8c36ca57de9c18c8c6433b1144f4afd3797d85f4
3
+ size 185963768