busetolunay
commited on
Commit
•
ec93bf0
1
Parent(s):
85633bb
End of training
Browse files- README.md +79 -0
- ace2.safetensors +3 -0
- ace2_emb.safetensors +3 -0
- logs/dreambooth-lora-sd-xl/1724832769.3423722/events.out.tfevents.1724832769.3273fd9608c9.1994.1 +3 -0
- logs/dreambooth-lora-sd-xl/1724832769.3555667/hparams.yml +79 -0
- logs/dreambooth-lora-sd-xl/1724847169.9458585/events.out.tfevents.1724847169.1400ec26ecc4.1380.1 +3 -0
- logs/dreambooth-lora-sd-xl/1724847169.9638345/hparams.yml +79 -0
- logs/dreambooth-lora-sd-xl/1724849298.9524682/events.out.tfevents.1724849298.1400ec26ecc4.1757.1 +3 -0
- logs/dreambooth-lora-sd-xl/1724849298.9668312/hparams.yml +79 -0
- logs/dreambooth-lora-sd-xl/events.out.tfevents.1724832769.3273fd9608c9.1994.0 +3 -0
- logs/dreambooth-lora-sd-xl/events.out.tfevents.1724847169.1400ec26ecc4.1380.0 +3 -0
- logs/dreambooth-lora-sd-xl/events.out.tfevents.1724849298.1400ec26ecc4.1757.0 +3 -0
- pytorch_lora_weights.safetensors +3 -0
README.md
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- stable-diffusion-xl
|
4 |
+
- stable-diffusion-xl-diffusers
|
5 |
+
- diffusers-training
|
6 |
+
- text-to-image
|
7 |
+
- diffusers
|
8 |
+
- lora
|
9 |
+
- template:sd-lora
|
10 |
+
widget:
|
11 |
+
|
12 |
+
- text: '<s0><s1> style'
|
13 |
+
|
14 |
+
base_model: stabilityai/stable-diffusion-xl
|
15 |
+
instance_prompt: <s0><s1> style
|
16 |
+
license: openrail++
|
17 |
+
---
|
18 |
+
|
19 |
+
# SDXL LoRA DreamBooth - busetolunay/ace2
|
20 |
+
|
21 |
+
<Gallery />
|
22 |
+
|
23 |
+
## Model description
|
24 |
+
|
25 |
+
### These are busetolunay/ace2 LoRA adaption weights for stabilityai/stable-diffusion-xl.
|
26 |
+
|
27 |
+
## Download model
|
28 |
+
|
29 |
+
### Use it with UIs such as AUTOMATIC1111, Comfy UI, SD.Next, Invoke
|
30 |
+
|
31 |
+
- **LoRA**: download **[`ace2.safetensors` here 💾](/busetolunay/ace2/blob/main/ace2.safetensors)**.
|
32 |
+
- Place it on your `models/Lora` folder.
|
33 |
+
- On AUTOMATIC1111, load the LoRA by adding `<lora:ace2:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
|
34 |
+
- *Embeddings*: download **[`ace2_emb.safetensors` here 💾](/busetolunay/ace2/blob/main/ace2_emb.safetensors)**.
|
35 |
+
- Place it on it on your `embeddings` folder
|
36 |
+
- Use it by adding `ace2_emb` to your prompt. For example, `ace2_emb style`
|
37 |
+
(you need both the LoRA and the embeddings as they were trained together for this LoRA)
|
38 |
+
|
39 |
+
|
40 |
+
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
41 |
+
|
42 |
+
```py
|
43 |
+
from diffusers import AutoPipelineForText2Image
|
44 |
+
import torch
|
45 |
+
from huggingface_hub import hf_hub_download
|
46 |
+
from safetensors.torch import load_file
|
47 |
+
|
48 |
+
pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to('cuda')
|
49 |
+
pipeline.load_lora_weights('busetolunay/ace2', weight_name='pytorch_lora_weights.safetensors')
|
50 |
+
embedding_path = hf_hub_download(repo_id='busetolunay/ace2', filename='ace2_emb.safetensors', repo_type="model")
|
51 |
+
state_dict = load_file(embedding_path)
|
52 |
+
pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)
|
53 |
+
pipeline.load_textual_inversion(state_dict["clip_g"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder_2, tokenizer=pipeline.tokenizer_2)
|
54 |
+
|
55 |
+
image = pipeline('<s0><s1> style').images[0]
|
56 |
+
```
|
57 |
+
|
58 |
+
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)
|
59 |
+
|
60 |
+
## Trigger words
|
61 |
+
|
62 |
+
To trigger image generation of trained concept(or concepts) replace each concept identifier in you prompt with the new inserted tokens:
|
63 |
+
|
64 |
+
to trigger concept `a0ce` → use `<s0><s1>` in your prompt
|
65 |
+
|
66 |
+
|
67 |
+
|
68 |
+
## Details
|
69 |
+
All [Files & versions](/busetolunay/ace2/tree/main).
|
70 |
+
|
71 |
+
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).
|
72 |
+
|
73 |
+
LoRA for the text encoder was enabled. False.
|
74 |
+
|
75 |
+
Pivotal tuning was enabled: True.
|
76 |
+
|
77 |
+
Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
|
78 |
+
|
79 |
+
|
ace2.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4ce39829bc373b040309bfc52e4e85820281448c927b56bcbd57f6f2d18dfbb5
|
3 |
+
size 186046568
|
ace2_emb.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cf625eae9290bed295a5dcf45f1cfa6e85a5a86ba607fb2caee54930f3cd02f3
|
3 |
+
size 16536
|
logs/dreambooth-lora-sd-xl/1724832769.3423722/events.out.tfevents.1724832769.3273fd9608c9.1994.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4793454fae688b9198e18e530c8f015d138cdd43704102a3ea547b986502011f
|
3 |
+
size 3729
|
logs/dreambooth-lora-sd-xl/1724832769.3555667/hparams.yml
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
adam_beta1: 0.9
|
2 |
+
adam_beta2: 0.999
|
3 |
+
adam_epsilon: 1.0e-08
|
4 |
+
adam_weight_decay: 0.01
|
5 |
+
adam_weight_decay_text_encoder: 0.01
|
6 |
+
allow_tf32: false
|
7 |
+
cache_dir: null
|
8 |
+
cache_latents: false
|
9 |
+
caption_column: text
|
10 |
+
center_crop: false
|
11 |
+
checkpointing_steps: 10000
|
12 |
+
checkpoints_total_limit: null
|
13 |
+
class_data_dir: null
|
14 |
+
class_prompt: null
|
15 |
+
clip_skip: null
|
16 |
+
dataloader_num_workers: 0
|
17 |
+
dataset_config_name: null
|
18 |
+
dataset_name: busetolunay/deneme_building
|
19 |
+
do_edm_style_training: false
|
20 |
+
enable_xformers_memory_efficient_attention: true
|
21 |
+
gradient_accumulation_steps: 1
|
22 |
+
gradient_checkpointing: true
|
23 |
+
hub_model_id: busetolunay/ace2
|
24 |
+
hub_token: null
|
25 |
+
image_column: image
|
26 |
+
instance_data_dir: null
|
27 |
+
instance_prompt: <s0><s1> style
|
28 |
+
learning_rate: 1.0
|
29 |
+
local_rank: 0
|
30 |
+
logging_dir: logs
|
31 |
+
lora_unet_blocks: null
|
32 |
+
lr_num_cycles: 1
|
33 |
+
lr_power: 1.0
|
34 |
+
lr_scheduler: constant
|
35 |
+
lr_warmup_steps: 500
|
36 |
+
max_grad_norm: 1.0
|
37 |
+
max_train_steps: 1500
|
38 |
+
mixed_precision: bf16
|
39 |
+
noise_offset: 0
|
40 |
+
num_class_images: 100
|
41 |
+
num_new_tokens_per_abstraction: 2
|
42 |
+
num_train_epochs: 215
|
43 |
+
num_validation_images: 4
|
44 |
+
optimizer: prodigy
|
45 |
+
output_dir: ace2
|
46 |
+
pretrained_model_name_or_path: stabilityai/stable-diffusion-xl
|
47 |
+
pretrained_vae_model_name_or_path: madebyollin/sdxl-vae-fp16-fix
|
48 |
+
prior_generation_precision: null
|
49 |
+
prior_loss_weight: 1.0
|
50 |
+
prodigy_beta3: null
|
51 |
+
prodigy_decouple: true
|
52 |
+
prodigy_safeguard_warmup: true
|
53 |
+
prodigy_use_bias_correction: true
|
54 |
+
push_to_hub: true
|
55 |
+
random_flip: false
|
56 |
+
rank: 128
|
57 |
+
repeats: 1
|
58 |
+
report_to: tensorboard
|
59 |
+
resolution: 1024
|
60 |
+
resume_from_checkpoint: null
|
61 |
+
revision: null
|
62 |
+
sample_batch_size: 4
|
63 |
+
scale_lr: false
|
64 |
+
seed: null
|
65 |
+
snr_gamma: 5.0
|
66 |
+
text_encoder_lr: 1.0
|
67 |
+
token_abstraction: a0ce
|
68 |
+
train_batch_size: 1
|
69 |
+
train_text_encoder: false
|
70 |
+
train_text_encoder_frac: 1.0
|
71 |
+
train_text_encoder_ti: true
|
72 |
+
train_text_encoder_ti_frac: 0.5
|
73 |
+
use_8bit_adam: false
|
74 |
+
use_blora: false
|
75 |
+
use_dora: false
|
76 |
+
validation_epochs: 50
|
77 |
+
validation_prompt: null
|
78 |
+
variant: null
|
79 |
+
with_prior_preservation: false
|
logs/dreambooth-lora-sd-xl/1724847169.9458585/events.out.tfevents.1724847169.1400ec26ecc4.1380.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:94522080cd6159aa1d5ee512a05235454b261738803d59a0548fe2d507ac75f5
|
3 |
+
size 3729
|
logs/dreambooth-lora-sd-xl/1724847169.9638345/hparams.yml
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
adam_beta1: 0.9
|
2 |
+
adam_beta2: 0.999
|
3 |
+
adam_epsilon: 1.0e-08
|
4 |
+
adam_weight_decay: 0.01
|
5 |
+
adam_weight_decay_text_encoder: 0.01
|
6 |
+
allow_tf32: false
|
7 |
+
cache_dir: null
|
8 |
+
cache_latents: false
|
9 |
+
caption_column: text
|
10 |
+
center_crop: false
|
11 |
+
checkpointing_steps: 10000
|
12 |
+
checkpoints_total_limit: null
|
13 |
+
class_data_dir: null
|
14 |
+
class_prompt: null
|
15 |
+
clip_skip: null
|
16 |
+
dataloader_num_workers: 0
|
17 |
+
dataset_config_name: null
|
18 |
+
dataset_name: busetolunay/deneme_building
|
19 |
+
do_edm_style_training: false
|
20 |
+
enable_xformers_memory_efficient_attention: true
|
21 |
+
gradient_accumulation_steps: 1
|
22 |
+
gradient_checkpointing: true
|
23 |
+
hub_model_id: busetolunay/ace2
|
24 |
+
hub_token: null
|
25 |
+
image_column: image
|
26 |
+
instance_data_dir: null
|
27 |
+
instance_prompt: <s0><s1> style
|
28 |
+
learning_rate: 1.0
|
29 |
+
local_rank: 0
|
30 |
+
logging_dir: logs
|
31 |
+
lora_unet_blocks: null
|
32 |
+
lr_num_cycles: 1
|
33 |
+
lr_power: 1.0
|
34 |
+
lr_scheduler: constant
|
35 |
+
lr_warmup_steps: 500
|
36 |
+
max_grad_norm: 1.0
|
37 |
+
max_train_steps: 1000
|
38 |
+
mixed_precision: bf16
|
39 |
+
noise_offset: 0
|
40 |
+
num_class_images: 100
|
41 |
+
num_new_tokens_per_abstraction: 2
|
42 |
+
num_train_epochs: 143
|
43 |
+
num_validation_images: 4
|
44 |
+
optimizer: prodigy
|
45 |
+
output_dir: ace2
|
46 |
+
pretrained_model_name_or_path: stabilityai/stable-diffusion-xl
|
47 |
+
pretrained_vae_model_name_or_path: madebyollin/sdxl-vae-fp16-fix
|
48 |
+
prior_generation_precision: null
|
49 |
+
prior_loss_weight: 1.0
|
50 |
+
prodigy_beta3: null
|
51 |
+
prodigy_decouple: true
|
52 |
+
prodigy_safeguard_warmup: true
|
53 |
+
prodigy_use_bias_correction: true
|
54 |
+
push_to_hub: true
|
55 |
+
random_flip: false
|
56 |
+
rank: 64
|
57 |
+
repeats: 1
|
58 |
+
report_to: tensorboard
|
59 |
+
resolution: 1024
|
60 |
+
resume_from_checkpoint: null
|
61 |
+
revision: null
|
62 |
+
sample_batch_size: 4
|
63 |
+
scale_lr: false
|
64 |
+
seed: null
|
65 |
+
snr_gamma: 5.0
|
66 |
+
text_encoder_lr: 1.0
|
67 |
+
token_abstraction: a0ce
|
68 |
+
train_batch_size: 1
|
69 |
+
train_text_encoder: false
|
70 |
+
train_text_encoder_frac: 1.0
|
71 |
+
train_text_encoder_ti: true
|
72 |
+
train_text_encoder_ti_frac: 0.5
|
73 |
+
use_8bit_adam: false
|
74 |
+
use_blora: false
|
75 |
+
use_dora: false
|
76 |
+
validation_epochs: 50
|
77 |
+
validation_prompt: null
|
78 |
+
variant: null
|
79 |
+
with_prior_preservation: false
|
logs/dreambooth-lora-sd-xl/1724849298.9524682/events.out.tfevents.1724849298.1400ec26ecc4.1757.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d061c33f8e72ae7350cce0d5ec9e992963dd260e1849c852a804cde229999d48
|
3 |
+
size 3729
|
logs/dreambooth-lora-sd-xl/1724849298.9668312/hparams.yml
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
adam_beta1: 0.9
|
2 |
+
adam_beta2: 0.999
|
3 |
+
adam_epsilon: 1.0e-08
|
4 |
+
adam_weight_decay: 0.01
|
5 |
+
adam_weight_decay_text_encoder: 0.01
|
6 |
+
allow_tf32: false
|
7 |
+
cache_dir: null
|
8 |
+
cache_latents: false
|
9 |
+
caption_column: text
|
10 |
+
center_crop: false
|
11 |
+
checkpointing_steps: 10000
|
12 |
+
checkpoints_total_limit: null
|
13 |
+
class_data_dir: null
|
14 |
+
class_prompt: null
|
15 |
+
clip_skip: null
|
16 |
+
dataloader_num_workers: 0
|
17 |
+
dataset_config_name: null
|
18 |
+
dataset_name: busetolunay/deneme_building
|
19 |
+
do_edm_style_training: false
|
20 |
+
enable_xformers_memory_efficient_attention: true
|
21 |
+
gradient_accumulation_steps: 1
|
22 |
+
gradient_checkpointing: true
|
23 |
+
hub_model_id: busetolunay/ace2
|
24 |
+
hub_token: null
|
25 |
+
image_column: image
|
26 |
+
instance_data_dir: null
|
27 |
+
instance_prompt: <s0><s1> style
|
28 |
+
learning_rate: 1.0
|
29 |
+
local_rank: 0
|
30 |
+
logging_dir: logs
|
31 |
+
lora_unet_blocks: null
|
32 |
+
lr_num_cycles: 1
|
33 |
+
lr_power: 1.0
|
34 |
+
lr_scheduler: constant
|
35 |
+
lr_warmup_steps: 500
|
36 |
+
max_grad_norm: 1.0
|
37 |
+
max_train_steps: 1000
|
38 |
+
mixed_precision: bf16
|
39 |
+
noise_offset: 0
|
40 |
+
num_class_images: 100
|
41 |
+
num_new_tokens_per_abstraction: 2
|
42 |
+
num_train_epochs: 143
|
43 |
+
num_validation_images: 4
|
44 |
+
optimizer: prodigy
|
45 |
+
output_dir: ace2
|
46 |
+
pretrained_model_name_or_path: stabilityai/stable-diffusion-xl
|
47 |
+
pretrained_vae_model_name_or_path: madebyollin/sdxl-vae-fp16-fix
|
48 |
+
prior_generation_precision: null
|
49 |
+
prior_loss_weight: 1.0
|
50 |
+
prodigy_beta3: null
|
51 |
+
prodigy_decouple: true
|
52 |
+
prodigy_safeguard_warmup: true
|
53 |
+
prodigy_use_bias_correction: true
|
54 |
+
push_to_hub: true
|
55 |
+
random_flip: false
|
56 |
+
rank: 32
|
57 |
+
repeats: 1
|
58 |
+
report_to: tensorboard
|
59 |
+
resolution: 1024
|
60 |
+
resume_from_checkpoint: null
|
61 |
+
revision: null
|
62 |
+
sample_batch_size: 4
|
63 |
+
scale_lr: false
|
64 |
+
seed: null
|
65 |
+
snr_gamma: 5.0
|
66 |
+
text_encoder_lr: 1.0
|
67 |
+
token_abstraction: a0ce
|
68 |
+
train_batch_size: 1
|
69 |
+
train_text_encoder: false
|
70 |
+
train_text_encoder_frac: 1.0
|
71 |
+
train_text_encoder_ti: true
|
72 |
+
train_text_encoder_ti_frac: 0.5
|
73 |
+
use_8bit_adam: false
|
74 |
+
use_blora: false
|
75 |
+
use_dora: false
|
76 |
+
validation_epochs: 50
|
77 |
+
validation_prompt: null
|
78 |
+
variant: null
|
79 |
+
with_prior_preservation: false
|
logs/dreambooth-lora-sd-xl/events.out.tfevents.1724832769.3273fd9608c9.1994.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f03be4698f4847b7f04bf47b892d136fa505828be8b89b0aaabf2c7633f4b906
|
3 |
+
size 125834
|
logs/dreambooth-lora-sd-xl/events.out.tfevents.1724847169.1400ec26ecc4.1380.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:50a82cf7896b5d9fe031ea5e35c652bd9f1ae08ce977d7184f752f4a6c642704
|
3 |
+
size 83834
|
logs/dreambooth-lora-sd-xl/events.out.tfevents.1724849298.1400ec26ecc4.1757.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a2f67747c790d62340acf64b6d17112c1fc4c91e87b1fd2c916327945bd0bbd3
|
3 |
+
size 83834
|
pytorch_lora_weights.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a918a161aeef1638f5eb096653e417854397be9635ce5cea528aaa41e2a93528
|
3 |
+
size 185963768
|