busetolunay commited on
Commit
040c270
1 Parent(s): b98a528

End of training

Browse files
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/ace3
20
+
21
+ <Gallery />
22
+
23
+ ## Model description
24
+
25
+ ### These are busetolunay/ace3 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 **[`ace3.safetensors` here 💾](/busetolunay/ace3/blob/main/ace3.safetensors)**.
32
+ - Place it on your `models/Lora` folder.
33
+ - On AUTOMATIC1111, load the LoRA by adding `<lora:ace3:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
34
+ - *Embeddings*: download **[`ace3_emb.safetensors` here 💾](/busetolunay/ace3/blob/main/ace3_emb.safetensors)**.
35
+ - Place it on it on your `embeddings` folder
36
+ - Use it by adding `ace3_emb` to your prompt. For example, `ace3_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/ace3', weight_name='pytorch_lora_weights.safetensors')
50
+ embedding_path = hf_hub_download(repo_id='busetolunay/ace3', filename='ace3_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/ace3/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
+
ace3.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ba066466caadad5fce99c91f54f3f88135153da2e453510ca1c8d2d87c84dc2
3
+ size 186046568
ace3_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7359ae5aa7f3b440f7f1fa9731c290eb37b66a07108cdae52fdeff6814a25eb
3
+ size 16536
logs/dreambooth-lora-sd-xl/1724855715.1164732/events.out.tfevents.1724855715.1400ec26ecc4.2729.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5358731500697380db30e9ad47132ca81fe98ea07e16b71236acc399dc60776
3
+ size 3729
logs/dreambooth-lora-sd-xl/1724855715.1296651/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/ace3
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: 800
38
+ mixed_precision: bf16
39
+ noise_offset: 0
40
+ num_class_images: 100
41
+ num_new_tokens_per_abstraction: 2
42
+ num_train_epochs: 115
43
+ num_validation_images: 4
44
+ optimizer: prodigy
45
+ output_dir: ace3
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.1724855715.1400ec26ecc4.2729.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4376d941fbb2aa10cfa3e5e3923a694e76dca0ebfb49469cebd78b115436d574
3
+ size 67034
pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a279f2e56b383cb6078ba10067afde21d5792d67f23f71a6f85aae06bf303e62
3
+ size 185963768