End of training
Browse files
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ 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
|
README.md
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- stable-diffusion-xl
|
4 |
+
- stable-diffusion-xl-diffusers
|
5 |
+
- diffusers-training
|
6 |
+
- text-to-image
|
7 |
+
- diffusers
|
8 |
+
- dora
|
9 |
+
- template:sd-lora
|
10 |
+
widget:
|
11 |
+
|
12 |
+
- text: 'An intricate <s0><s1> gold ring with an interwoven vine design, featuring small diamonds embedded within the leaves. The band is slightly wider to accommodate the detailed pattern.'
|
13 |
+
output:
|
14 |
+
url:
|
15 |
+
"image_0.png"
|
16 |
+
|
17 |
+
base_model: stabilityai/stable-diffusion-xl-base-1.0
|
18 |
+
instance_prompt: 3d icon in the style of <s0><s1>
|
19 |
+
license: openrail++
|
20 |
+
---
|
21 |
+
|
22 |
+
# SDXL LoRA DreamBooth - ss10ss10/original-1st-data-dreambooth-SDXL-LoRA
|
23 |
+
|
24 |
+
<Gallery />
|
25 |
+
|
26 |
+
## Model description
|
27 |
+
|
28 |
+
### These are ss10ss10/original-1st-data-dreambooth-SDXL-LoRA LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
|
29 |
+
|
30 |
+
## Download model
|
31 |
+
|
32 |
+
### Use it with UIs such as AUTOMATIC1111, Comfy UI, SD.Next, Invoke
|
33 |
+
|
34 |
+
- **LoRA**: download **[`original-1st-data-dreambooth-SDXL-LoRA.safetensors` here 💾](/ss10ss10/original-1st-data-dreambooth-SDXL-LoRA/blob/main/original-1st-data-dreambooth-SDXL-LoRA.safetensors)**.
|
35 |
+
- Place it on your `models/Lora` folder.
|
36 |
+
- On AUTOMATIC1111, load the LoRA by adding `<lora:original-1st-data-dreambooth-SDXL-LoRA:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
|
37 |
+
- *Embeddings*: download **[`original-1st-data-dreambooth-SDXL-LoRA_emb.safetensors` here 💾](/ss10ss10/original-1st-data-dreambooth-SDXL-LoRA/blob/main/original-1st-data-dreambooth-SDXL-LoRA_emb.safetensors)**.
|
38 |
+
- Place it on it on your `embeddings` folder
|
39 |
+
- Use it by adding `original-1st-data-dreambooth-SDXL-LoRA_emb` to your prompt. For example, `3d icon in the style of original-1st-data-dreambooth-SDXL-LoRA_emb`
|
40 |
+
(you need both the LoRA and the embeddings as they were trained together for this LoRA)
|
41 |
+
|
42 |
+
|
43 |
+
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
44 |
+
|
45 |
+
```py
|
46 |
+
from diffusers import AutoPipelineForText2Image
|
47 |
+
import torch
|
48 |
+
from huggingface_hub import hf_hub_download
|
49 |
+
from safetensors.torch import load_file
|
50 |
+
|
51 |
+
pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to('cuda')
|
52 |
+
pipeline.load_lora_weights('ss10ss10/original-1st-data-dreambooth-SDXL-LoRA', weight_name='pytorch_lora_weights.safetensors')
|
53 |
+
embedding_path = hf_hub_download(repo_id='ss10ss10/original-1st-data-dreambooth-SDXL-LoRA', filename='original-1st-data-dreambooth-SDXL-LoRA_emb.safetensors', repo_type="model")
|
54 |
+
state_dict = load_file(embedding_path)
|
55 |
+
pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)
|
56 |
+
pipeline.load_textual_inversion(state_dict["clip_g"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder_2, tokenizer=pipeline.tokenizer_2)
|
57 |
+
|
58 |
+
image = pipeline('An intricate <s0><s1> gold ring with an interwoven vine design, featuring small diamonds embedded within the leaves. The band is slightly wider to accommodate the detailed pattern.').images[0]
|
59 |
+
```
|
60 |
+
|
61 |
+
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)
|
62 |
+
|
63 |
+
## Trigger words
|
64 |
+
|
65 |
+
To trigger image generation of trained concept(or concepts) replace each concept identifier in you prompt with the new inserted tokens:
|
66 |
+
|
67 |
+
to trigger concept `TOK` → use `<s0><s1>` in your prompt
|
68 |
+
|
69 |
+
|
70 |
+
|
71 |
+
## Details
|
72 |
+
All [Files & versions](/ss10ss10/original-1st-data-dreambooth-SDXL-LoRA/tree/main).
|
73 |
+
|
74 |
+
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).
|
75 |
+
|
76 |
+
LoRA for the text encoder was enabled. False.
|
77 |
+
|
78 |
+
Pivotal tuning was enabled: True.
|
79 |
+
|
80 |
+
Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
|
81 |
+
|
82 |
+
|
image_0.png
ADDED
Git LFS Details
|
original-1st-data-dreambooth-SDXL-LoRA.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8a24ae9a9668a2da69a2205e42ba62bc26b3f020ccc871da3930df5966228b70
|
3 |
+
size 49448824
|
original-1st-data-dreambooth-SDXL-LoRA_emb.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a7166404f2915d7319a38605c1bc7d4d45fe6aa30eae55efcc67c89a6f402f02
|
3 |
+
size 16536
|
pytorch_lora_weights.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:52b1ed0bd66df508274b7cc2d11bf1e5dbe90e892dd2fb6941f03d8e8e6d68a0
|
3 |
+
size 49363248
|