busetolunay
commited on
Commit
•
3aba9e0
1
Parent(s):
8967b93
End of training
Browse files- README.md +79 -0
- ace4.safetensors +3 -0
- ace4_emb.safetensors +3 -0
- logs/dreambooth-lora-sd-xl/1724857366.7637713/events.out.tfevents.1724857366.1400ec26ecc4.3266.1 +3 -0
- logs/dreambooth-lora-sd-xl/1724857366.7744648/hparams.yml +79 -0
- logs/dreambooth-lora-sd-xl/events.out.tfevents.1724857366.1400ec26ecc4.3266.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/ace4
|
20 |
+
|
21 |
+
<Gallery />
|
22 |
+
|
23 |
+
## Model description
|
24 |
+
|
25 |
+
### These are busetolunay/ace4 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 **[`ace4.safetensors` here 💾](/busetolunay/ace4/blob/main/ace4.safetensors)**.
|
32 |
+
- Place it on your `models/Lora` folder.
|
33 |
+
- On AUTOMATIC1111, load the LoRA by adding `<lora:ace4:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
|
34 |
+
- *Embeddings*: download **[`ace4_emb.safetensors` here 💾](/busetolunay/ace4/blob/main/ace4_emb.safetensors)**.
|
35 |
+
- Place it on it on your `embeddings` folder
|
36 |
+
- Use it by adding `ace4_emb` to your prompt. For example, `ace4_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/ace4', weight_name='pytorch_lora_weights.safetensors')
|
50 |
+
embedding_path = hf_hub_download(repo_id='busetolunay/ace4', filename='ace4_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/ace4/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 |
+
|
ace4.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0f8135ab1b51433c95b10501149a32c0005f00bb2fa692b56ea8a918781daf1e
|
3 |
+
size 371841776
|
ace4_emb.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:34fa07a495d8d42e8600774dd545a365b12d01745e4ac3adb04defb5d2f85e53
|
3 |
+
size 16536
|
logs/dreambooth-lora-sd-xl/1724857366.7637713/events.out.tfevents.1724857366.1400ec26ecc4.3266.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a7a1db0714dda1521017c8342331c4128f5939490a587d5b966293757349292e
|
3 |
+
size 3729
|
logs/dreambooth-lora-sd-xl/1724857366.7744648/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/ace4
|
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: ace4
|
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/events.out.tfevents.1724857366.1400ec26ecc4.3266.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ed0da57028ebc58abaa3eabcb42ad163fb5f57bbe9503626caa304645c72026c
|
3 |
+
size 83834
|
pytorch_lora_weights.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dc34bef3d8b0514c461d0679afc74cead8df7c5ee0c5cbca3680fdab32358aa8
|
3 |
+
size 371758976
|