Terapevt1981 commited on
Commit
1e7ceee
·
verified ·
1 Parent(s): a2aacb1

Upload folder using huggingface_hub

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

Git LFS Details

  • SHA256: f7b16fa5d3ce1d8f1adb2a1355099352a9742b0fe22bf67369bac82fcf640225
  • Pointer size: 132 Bytes
  • Size of remote file: 1.26 MB
image-1.png ADDED

Git LFS Details

  • SHA256: 19bc89200ef7dbdcb0d32b9654e3d0475e49031d7b106fb80de9046093dff774
  • Pointer size: 132 Bytes
  • Size of remote file: 1.29 MB
image-10.png ADDED

Git LFS Details

  • SHA256: 85348699778790144fcca16ef2969c8b80bf6c26a9a3d8a8b8c624d573f4e9e8
  • Pointer size: 132 Bytes
  • Size of remote file: 1.27 MB
image-11.png ADDED

Git LFS Details

  • SHA256: 1137a1c98f39c3fe114f9b6bde6181d044bcefbbcbed262940ba2fa211746b61
  • Pointer size: 132 Bytes
  • Size of remote file: 1.18 MB
image-12.png ADDED

Git LFS Details

  • SHA256: 0167c5dac98d21439a44842a49dc8c038c8308d65d0e49be5e76d2b023993c16
  • Pointer size: 132 Bytes
  • Size of remote file: 1.03 MB
image-13.png ADDED

Git LFS Details

  • SHA256: 86b2c85b56bc1f747a27718146604554bb655890e15d0d5eb3f28b947eaac7a8
  • Pointer size: 132 Bytes
  • Size of remote file: 1.09 MB
image-14.png ADDED

Git LFS Details

  • SHA256: 160a27c620dce4b1a416275a1ebf190abc4578115101d66ecaa83c09f1c7c0a3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.13 MB
image-15.png ADDED

Git LFS Details

  • SHA256: 21fb0573c4c37d4115b5bdb9dd1f54a2bb6ccedf84d7838babc34d5b031d6090
  • Pointer size: 132 Bytes
  • Size of remote file: 1.21 MB
image-16.png ADDED

Git LFS Details

  • SHA256: a1f05ae67271c5792aa654cf82291d0cd69c171baafa216cd3b976a87433db3b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.17 MB
image-17.png ADDED

Git LFS Details

  • SHA256: 5530754c80e70bd6ea9a79a851fe4053fb437ac3869636983ac1a15b56e74867
  • Pointer size: 132 Bytes
  • Size of remote file: 1.33 MB
image-18.png ADDED

Git LFS Details

  • SHA256: 9dfa8e75e6c92836e9d34824d95a8de42e5ede1fc3ff611a275351418f773710
  • Pointer size: 132 Bytes
  • Size of remote file: 1.15 MB
image-19.png ADDED

Git LFS Details

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

Git LFS Details

  • SHA256: 8cead58e3310b749f28d3beb6eaeab1a1f9d50fdbc4ca8077e1994cd50bdf18b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.14 MB
image-3.png ADDED

Git LFS Details

  • SHA256: 1012bf48d79e54d06b751b0bbb4a1cac4001d9d56daca8e30e925b2a36d62736
  • Pointer size: 132 Bytes
  • Size of remote file: 1.03 MB
image-4.png ADDED

Git LFS Details

  • SHA256: 8520cf492bbf371a95631efc299a8952f0e9f58542b685fd26aef4e40836857a
  • Pointer size: 132 Bytes
  • Size of remote file: 1.12 MB
image-5.png ADDED

Git LFS Details

  • SHA256: c8656141356cbb5f157def78af8486e513bf3fc96b253caf71622bd76bbd3529
  • Pointer size: 132 Bytes
  • Size of remote file: 1.23 MB
image-6.png ADDED

Git LFS Details

  • SHA256: eee53407ced5969a1689d4d9aefd8aa98796f20486856680019f205cd60a011e
  • Pointer size: 132 Bytes
  • Size of remote file: 1.07 MB
image-7.png ADDED

Git LFS Details

  • SHA256: bbb4f74fb6b14f94900e128ad76a907bd839d8383f3a274a13476600d1f4d4d1
  • Pointer size: 132 Bytes
  • Size of remote file: 1.29 MB
image-8.png ADDED

Git LFS Details

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

Git LFS Details

  • SHA256: 36e10f144079c800be635da094909eb340f9acc6e148beaa87ab356db5e4ea6a
  • Pointer size: 132 Bytes
  • Size of remote file: 1.04 MB
logs/dreambooth-lora-sd-xl/1722186115.2104094/events.out.tfevents.1722186115.r-terapevt1981-autotrain-mia-lora-01-2807-jfzi6f97-75cb1-3mys0.194.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7f884c93f63ca685f2c000fba76c334ebac54476831175799fd3f0e220fe1c2
3
+ size 3738
logs/dreambooth-lora-sd-xl/1722186115.2119367/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: e37892e1-609b-42a5-b8f2-cff1799ff857
14
+ class_prompt: A young attractive athletic woman with dark skin
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: ./229ff9d7-2854-4f68-b6e0-bb85d43ae249
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: A photo 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: 1500
37
+ mixed_precision: bf16
38
+ noise_offset: 0
39
+ num_class_images: 150
40
+ num_new_tokens_per_abstraction: 2
41
+ num_train_epochs: 20
42
+ num_validation_images: 4
43
+ optimizer: prodigy
44
+ output_dir: mia-lora-01-2807
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: 128
55
+ repeats: 2
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: true
logs/dreambooth-lora-sd-xl/events.out.tfevents.1722186115.r-terapevt1981-autotrain-mia-lora-01-2807-jfzi6f97-75cb1-3mys0.194.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7209a1e1cc7a514feab8c01eb556fa710c340c4b8405acd4153ed9d8a72ee004
3
+ size 125834
mia-lora-01-2807.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3d6eb149d283a1918ddc25e2ec2bbd8dfb6d6ea2d9b0a97532db46ea6656bdf
3
+ size 743432352
mia-lora-01-2807_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:734936890f849304a9a73cc47398ad1fa26d50859877faef05eea20acd54cb37
3
+ size 16536
pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f41da9dea9f56f4f4f30382296781214aed451068b439fa0c730126f5c7fe875
3
+ size 743349552