Upload folder using huggingface_hub
Browse files- .gitattributes +22 -0
- README.md +176 -0
- huggingface-brand-universe.safetensors +3 -0
- huggingface-brand-universe_emb.safetensors +3 -0
- image-0.png +3 -0
- image-1.png +3 -0
- image-10.png +0 -0
- image-11.png +0 -0
- image-12.png +0 -0
- image-13.png +3 -0
- image-14.png +3 -0
- image-15.png +0 -0
- image-16.png +0 -0
- image-17.png +3 -0
- image-18.png +3 -0
- image-19.png +3 -0
- image-2.png +3 -0
- image-20.png +0 -0
- image-21.png +3 -0
- image-22.png +3 -0
- image-23.png +3 -0
- image-24.png +3 -0
- image-25.png +3 -0
- image-26.png +3 -0
- image-27.png +0 -0
- image-28.png +3 -0
- image-29.png +0 -0
- image-3.png +3 -0
- image-30.png +3 -0
- image-31.png +0 -0
- image-32.png +0 -0
- image-4.png +3 -0
- image-5.png +3 -0
- image-6.png +3 -0
- image-7.png +0 -0
- image-8.png +3 -0
- image-9.png +3 -0
- logs/dreambooth-lora-sd-xl/1722362124.9786143/events.out.tfevents.1722362124.r-blanchon-autotrain-huggingface-brand-universe-0qzla-194d3-axn.194.1 +3 -0
- logs/dreambooth-lora-sd-xl/1722362124.9800963/hparams.yml +75 -0
- logs/dreambooth-lora-sd-xl/events.out.tfevents.1722362124.r-blanchon-autotrain-huggingface-brand-universe-0qzla-194d3-axn.194.0 +3 -0
- pytorch_lora_weights.safetensors +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,25 @@ 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-13.png filter=lfs diff=lfs merge=lfs -text
|
39 |
+
image-14.png filter=lfs diff=lfs merge=lfs -text
|
40 |
+
image-17.png filter=lfs diff=lfs merge=lfs -text
|
41 |
+
image-18.png filter=lfs diff=lfs merge=lfs -text
|
42 |
+
image-19.png filter=lfs diff=lfs merge=lfs -text
|
43 |
+
image-2.png filter=lfs diff=lfs merge=lfs -text
|
44 |
+
image-21.png filter=lfs diff=lfs merge=lfs -text
|
45 |
+
image-22.png filter=lfs diff=lfs merge=lfs -text
|
46 |
+
image-23.png filter=lfs diff=lfs merge=lfs -text
|
47 |
+
image-24.png filter=lfs diff=lfs merge=lfs -text
|
48 |
+
image-25.png filter=lfs diff=lfs merge=lfs -text
|
49 |
+
image-26.png filter=lfs diff=lfs merge=lfs -text
|
50 |
+
image-28.png filter=lfs diff=lfs merge=lfs -text
|
51 |
+
image-3.png filter=lfs diff=lfs merge=lfs -text
|
52 |
+
image-30.png filter=lfs diff=lfs merge=lfs -text
|
53 |
+
image-4.png filter=lfs diff=lfs merge=lfs -text
|
54 |
+
image-5.png filter=lfs diff=lfs merge=lfs -text
|
55 |
+
image-6.png filter=lfs diff=lfs merge=lfs -text
|
56 |
+
image-8.png filter=lfs diff=lfs merge=lfs -text
|
57 |
+
image-9.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 sticker of a smiling emoticion with hands up in the style of <s0><s1>
|
11 |
+
output:
|
12 |
+
url: image-0.png
|
13 |
+
- text: a smiley face with hands up in front of a rainbow background in the style
|
14 |
+
of <s0><s1>
|
15 |
+
output:
|
16 |
+
url: image-1.png
|
17 |
+
- text: a yellow smiley with a paintbrush and paint in the style of <s0><s1>
|
18 |
+
output:
|
19 |
+
url: image-2.png
|
20 |
+
- text: a yellow emoticion with a magnifying glass in the style of <s0><s1>
|
21 |
+
output:
|
22 |
+
url: image-3.png
|
23 |
+
- text: a yellow sun with a thermometer in its hand in the style of <s0><s1>
|
24 |
+
output:
|
25 |
+
url: image-4.png
|
26 |
+
- text: a yellow smiley with a hat and a red heart in the style of <s0><s1>
|
27 |
+
output:
|
28 |
+
url: image-5.png
|
29 |
+
- text: a smiley face with a computer chip in the style of <s0><s1>
|
30 |
+
output:
|
31 |
+
url: image-6.png
|
32 |
+
- text: world map sticker - 1 in the style of <s0><s1>
|
33 |
+
output:
|
34 |
+
url: image-7.png
|
35 |
+
- text: two yellow smiley faces with thumbs up in the style of <s0><s1>
|
36 |
+
output:
|
37 |
+
url: image-8.png
|
38 |
+
- text: a yellow smiley face with a hand up in the style of <s0><s1>
|
39 |
+
output:
|
40 |
+
url: image-9.png
|
41 |
+
- text: a cartoon character watering a plant with a watering can in the style of <s0><s1>
|
42 |
+
output:
|
43 |
+
url: image-10.png
|
44 |
+
- text: a yellow sun with a thermometer and a blue crystal in the style of <s0><s1>
|
45 |
+
output:
|
46 |
+
url: image-11.png
|
47 |
+
- text: a yellow sun is holding a drink machine in the style of <s0><s1>
|
48 |
+
output:
|
49 |
+
url: image-12.png
|
50 |
+
- text: checklist emoji sticker in the style of <s0><s1>
|
51 |
+
output:
|
52 |
+
url: image-13.png
|
53 |
+
- text: a yellow smiley with a paper and a pencil in the style of <s0><s1>
|
54 |
+
output:
|
55 |
+
url: image-14.png
|
56 |
+
- text: a yellow smiley face with a rocket on top in the style of <s0><s1>
|
57 |
+
output:
|
58 |
+
url: image-15.png
|
59 |
+
- text: a cartoon character with a red eye and a red light in the style of <s0><s1>
|
60 |
+
output:
|
61 |
+
url: image-16.png
|
62 |
+
- text: a cartoon character playing the violin in the style of <s0><s1>
|
63 |
+
output:
|
64 |
+
url: image-17.png
|
65 |
+
- text: a yellow smiley face with text that says task language license in the style
|
66 |
+
of <s0><s1>
|
67 |
+
output:
|
68 |
+
url: image-18.png
|
69 |
+
- text: a yellow emoticion with a graduation cap and a pen in the style of <s0><s1>
|
70 |
+
output:
|
71 |
+
url: image-19.png
|
72 |
+
- text: a yellow smiley face with a remote control in the style of <s0><s1>
|
73 |
+
output:
|
74 |
+
url: image-20.png
|
75 |
+
- text: a yellow smiley face with a colorful letter d in the style of <s0><s1>
|
76 |
+
output:
|
77 |
+
url: image-21.png
|
78 |
+
- text: a yellow smiley face with a dragon hat in the style of <s0><s1>
|
79 |
+
output:
|
80 |
+
url: image-22.png
|
81 |
+
- text: a yellow smiley with a red moustache and a red hat in the style of <s0><s1>
|
82 |
+
output:
|
83 |
+
url: image-23.png
|
84 |
+
- text: a yellow emoticion singing into a microphone in the style of <s0><s1>
|
85 |
+
output:
|
86 |
+
url: image-24.png
|
87 |
+
- text: dora the explorer emoji sticker in the style of <s0><s1>
|
88 |
+
output:
|
89 |
+
url: image-25.png
|
90 |
+
- text: optimum - a free online tool for managing your finances in the style of <s0><s1>
|
91 |
+
output:
|
92 |
+
url: image-26.png
|
93 |
+
- text: a yellow emoticion with a heart on it in the style of <s0><s1>
|
94 |
+
output:
|
95 |
+
url: image-27.png
|
96 |
+
- text: a yellow smiley face with confetti falling from it in the style of <s0><s1>
|
97 |
+
output:
|
98 |
+
url: image-28.png
|
99 |
+
- text: a yellow emoticitor with a hat and a wand in the style of <s0><s1>
|
100 |
+
output:
|
101 |
+
url: image-29.png
|
102 |
+
- text: a yellow emoticion with sunglasses and a black background in the style of
|
103 |
+
<s0><s1>
|
104 |
+
output:
|
105 |
+
url: image-30.png
|
106 |
+
- text: a yellow emoticion with wine in his hand in the style of <s0><s1>
|
107 |
+
output:
|
108 |
+
url: image-31.png
|
109 |
+
- text: a smiley face with a book and a heart in the style of <s0><s1>
|
110 |
+
output:
|
111 |
+
url: image-32.png
|
112 |
+
base_model: stabilityai/stable-diffusion-xl-base-1.0
|
113 |
+
instance_prompt: in the style of <s0><s1>
|
114 |
+
license: openrail++
|
115 |
+
---
|
116 |
+
|
117 |
+
# SDXL LoRA DreamBooth - blanchon/huggingface-brand-universe
|
118 |
+
|
119 |
+
<Gallery />
|
120 |
+
|
121 |
+
## Model description
|
122 |
+
|
123 |
+
### These are blanchon/huggingface-brand-universe LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
|
124 |
+
|
125 |
+
## Download model
|
126 |
+
|
127 |
+
### Use it with UIs such as AUTOMATIC1111, Comfy UI, SD.Next, Invoke
|
128 |
+
|
129 |
+
- **LoRA**: download **[`huggingface-brand-universe.safetensors` here 💾](/blanchon/huggingface-brand-universe/blob/main/huggingface-brand-universe.safetensors)**.
|
130 |
+
- Place it on your `models/Lora` folder.
|
131 |
+
- On AUTOMATIC1111, load the LoRA by adding `<lora:huggingface-brand-universe:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
|
132 |
+
- *Embeddings*: download **[`huggingface-brand-universe_emb.safetensors` here 💾](/blanchon/huggingface-brand-universe/blob/main/huggingface-brand-universe_emb.safetensors)**.
|
133 |
+
- Place it on it on your `embeddings` folder
|
134 |
+
- Use it by adding `huggingface-brand-universe_emb` to your prompt. For example, `in the style of huggingface-brand-universe_emb`
|
135 |
+
(you need both the LoRA and the embeddings as they were trained together for this LoRA)
|
136 |
+
|
137 |
+
|
138 |
+
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
139 |
+
|
140 |
+
```py
|
141 |
+
from diffusers import AutoPipelineForText2Image
|
142 |
+
import torch
|
143 |
+
from huggingface_hub import hf_hub_download
|
144 |
+
from safetensors.torch import load_file
|
145 |
+
|
146 |
+
pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to('cuda')
|
147 |
+
pipeline.load_lora_weights('blanchon/huggingface-brand-universe', weight_name='pytorch_lora_weights.safetensors')
|
148 |
+
embedding_path = hf_hub_download(repo_id='blanchon/huggingface-brand-universe', filename='huggingface-brand-universe_emb.safetensors' repo_type="model")
|
149 |
+
state_dict = load_file(embedding_path)
|
150 |
+
pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)
|
151 |
+
pipeline.load_textual_inversion(state_dict["clip_g"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder_2, tokenizer=pipeline.tokenizer_2)
|
152 |
+
|
153 |
+
image = pipeline('in the style of <s0><s1>').images[0]
|
154 |
+
```
|
155 |
+
|
156 |
+
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)
|
157 |
+
|
158 |
+
## Trigger words
|
159 |
+
|
160 |
+
To trigger image generation of trained concept(or concepts) replace each concept identifier in you prompt with the new inserted tokens:
|
161 |
+
|
162 |
+
to trigger concept `TOK` → use `<s0><s1>` in your prompt
|
163 |
+
|
164 |
+
|
165 |
+
|
166 |
+
## Details
|
167 |
+
All [Files & versions](/blanchon/huggingface-brand-universe/tree/main).
|
168 |
+
|
169 |
+
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).
|
170 |
+
|
171 |
+
LoRA for the text encoder was enabled. False.
|
172 |
+
|
173 |
+
Pivotal tuning was enabled: True.
|
174 |
+
|
175 |
+
Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
|
176 |
+
|
huggingface-brand-universe.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d4f8893244daa205857ec56d125227592bb3babaef3493a5c0907dff9f28af0f
|
3 |
+
size 186046568
|
huggingface-brand-universe_emb.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d77685d1a7d4a1d5c30c107a4920d1127f0e24eee9611c626650fda080aa341d
|
3 |
+
size 16536
|
image-0.png
ADDED
![]() |
Git LFS Details
|
image-1.png
ADDED
![]() |
Git LFS Details
|
image-10.png
ADDED
![]() |
image-11.png
ADDED
![]() |
image-12.png
ADDED
![]() |
image-13.png
ADDED
![]() |
Git LFS Details
|
image-14.png
ADDED
![]() |
Git LFS Details
|
image-15.png
ADDED
![]() |
image-16.png
ADDED
![]() |
image-17.png
ADDED
![]() |
Git LFS Details
|
image-18.png
ADDED
![]() |
Git LFS Details
|
image-19.png
ADDED
![]() |
Git LFS Details
|
image-2.png
ADDED
![]() |
Git LFS Details
|
image-20.png
ADDED
![]() |
image-21.png
ADDED
![]() |
Git LFS Details
|
image-22.png
ADDED
![]() |
Git LFS Details
|
image-23.png
ADDED
![]() |
Git LFS Details
|
image-24.png
ADDED
![]() |
Git LFS Details
|
image-25.png
ADDED
![]() |
Git LFS Details
|
image-26.png
ADDED
![]() |
Git LFS Details
|
image-27.png
ADDED
![]() |
image-28.png
ADDED
![]() |
Git LFS Details
|
image-29.png
ADDED
![]() |
image-3.png
ADDED
![]() |
Git LFS Details
|
image-30.png
ADDED
![]() |
Git LFS Details
|
image-31.png
ADDED
![]() |
image-32.png
ADDED
![]() |
image-4.png
ADDED
![]() |
Git LFS Details
|
image-5.png
ADDED
![]() |
Git LFS Details
|
image-6.png
ADDED
![]() |
Git LFS Details
|
image-7.png
ADDED
![]() |
image-8.png
ADDED
![]() |
Git LFS Details
|
image-9.png
ADDED
![]() |
Git LFS Details
|
logs/dreambooth-lora-sd-xl/1722362124.9786143/events.out.tfevents.1722362124.r-blanchon-autotrain-huggingface-brand-universe-0qzla-194d3-axn.194.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9b1c66d060dee6a77e261a753aa541fdcfc13614e6585f1ca4700d9b90034971
|
3 |
+
size 3589
|
logs/dreambooth-lora-sd-xl/1722362124.9800963/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: ./380f920b-fa7f-4052-86b7-0bc82f8b80c9
|
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: 1500
|
37 |
+
mixed_precision: bf16
|
38 |
+
noise_offset: 0
|
39 |
+
num_class_images: 100
|
40 |
+
num_new_tokens_per_abstraction: 2
|
41 |
+
num_train_epochs: 89
|
42 |
+
num_validation_images: 4
|
43 |
+
optimizer: prodigy
|
44 |
+
output_dir: huggingface-brand-universe
|
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: 1024
|
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.1722362124.r-blanchon-autotrain-huggingface-brand-universe-0qzla-194d3-axn.194.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e9e11b8b283436db6f98b4e7736dbc3d5ee2eacb25097ba453a5cc0337594b11
|
3 |
+
size 125834
|
pytorch_lora_weights.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aed3aa79c3750065bc225451817c79ea6425c8e65b25fa5a5d21a594ab671bcc
|
3 |
+
size 185963768
|