ellemac commited on
Commit
252f17d
1 Parent(s): e1890aa

End of training

Browse files
3d-icon-SDXL-LoRA.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59e56b7bad01dafc8a6780a6c9670a5ccfa4685dd82ca8d5095eb928c70486fc
3
+ size 186046568
3d-icon-SDXL-LoRA_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:acd244ebf8bcd4e516a6719ccd7753cf5d0368cc81e4ca7655d1f9f1615a25c3
3
+ size 16536
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 'a photo of <s0><s1>'
13
+
14
+ base_model: stabilityai/stable-diffusion-xl-base-1.0
15
+ instance_prompt: a photo of <s0><s1>
16
+ license: openrail++
17
+ ---
18
+
19
+ # SDXL LoRA DreamBooth - ellemac/3d-icon-SDXL-LoRA
20
+
21
+ <Gallery />
22
+
23
+ ## Model description
24
+
25
+ ### These are ellemac/3d-icon-SDXL-LoRA LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
26
+
27
+ ## Download model
28
+
29
+ ### Use it with UIs such as AUTOMATIC1111, Comfy UI, SD.Next, Invoke
30
+
31
+ - **LoRA**: download **[`3d-icon-SDXL-LoRA.safetensors` here 💾](/ellemac/3d-icon-SDXL-LoRA/blob/main/3d-icon-SDXL-LoRA.safetensors)**.
32
+ - Place it on your `models/Lora` folder.
33
+ - On AUTOMATIC1111, load the LoRA by adding `<lora:3d-icon-SDXL-LoRA:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
34
+ - *Embeddings*: download **[`3d-icon-SDXL-LoRA_emb.safetensors` here 💾](/ellemac/3d-icon-SDXL-LoRA/blob/main/3d-icon-SDXL-LoRA_emb.safetensors)**.
35
+ - Place it on it on your `embeddings` folder
36
+ - Use it by adding `3d-icon-SDXL-LoRA_emb` to your prompt. For example, `a photo of 3d-icon-SDXL-LoRA_emb`
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('ellemac/3d-icon-SDXL-LoRA', weight_name='pytorch_lora_weights.safetensors')
50
+ embedding_path = hf_hub_download(repo_id='ellemac/3d-icon-SDXL-LoRA', filename='3d-icon-SDXL-LoRA_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('a portrait of <s0><s1>').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 `TOK` → use `<s0><s1>` in your prompt
65
+
66
+
67
+
68
+ ## Details
69
+ All [Files & versions](/ellemac/3d-icon-SDXL-LoRA/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
+
checkpoint-10/3d-icon-SDXL-LoRA_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d0d2d2a35b209f644a59ae56499a81ec5e49801bfb84bf707b9bcb4a2163abd
3
+ size 16536
checkpoint-10/optimizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b3e0565ce3373c371c7e7423456e5f159df7d5d05c589a676ad5a94dc2a2262
3
+ size 1991970778
checkpoint-10/pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f40b92873b9519288467b06b4c58d628ca24449e61d30db1c69b84d477bd166
3
+ size 93066424
checkpoint-10/random_states_0.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9afeaef2e953f04dac195eec2afc0812d1252d6456feebcfa2a8dbbc1698de8a
3
+ size 14344
checkpoint-10/scheduler.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c0ef5d14acb3ed20b2f353322ff6e295b4d7cc5e3cbb79ec0c17d9dffc68cb6
3
+ size 1064
checkpoint-15/3d-icon-SDXL-LoRA_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a0cae11e440467289c0197220159aa55b622ee278006e73cc8a2b20397274d2
3
+ size 16536
checkpoint-15/optimizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fbe336f8a3d9935048e62cf40037a8fefac0051b8f043e2f54df5d0d4d3e2ed0
3
+ size 625258837
checkpoint-15/pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b464427927c476af3a68e5df8699031f51b137b6cb70a6bf3f074aad3e759e00
3
+ size 93066424
checkpoint-5/3d-icon-SDXL-LoRA_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef984f248b7fb0fd9f9ff7b803e5b50e9cb7d47f762c6cbe9662d577df540210
3
+ size 16536
checkpoint-5/optimizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab65e47356c0d193828895cc0e7b9c39dc11c58dc9a9a97105355eb2bad1e036
3
+ size 1991970778
checkpoint-5/pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e34c3c744df76ed692c4008d7236a35ddc8b1444e06c4e4f3d124712f35639f
3
+ size 93066424
checkpoint-5/random_states_0.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37cb00e9433165f27e3f199339da65fc884a8b3d387e8c40e7d05cbc982cfd66
3
+ size 14344
checkpoint-5/scheduler.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5d6df1cb6ebfec512b968a1495fd3793ccf7c45ade79dd15b2bbcc9aac6b37c
3
+ size 1064
pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96344a9aea9d632499106e7399c23d7aafed21f3922013d0114f5362ed63cb3b
3
+ size 185963768