End of training
Browse files- README.md +9 -9
- dnd-SDXL-LoRA.safetensors +1 -1
- image_0.png +2 -2
- image_1.png +2 -2
- image_2.png +2 -2
- image_3.png +2 -2
- pytorch_lora_weights.safetensors +1 -1
README.md
CHANGED
@@ -9,28 +9,28 @@ tags:
|
|
9 |
- template:sd-lora
|
10 |
widget:
|
11 |
|
12 |
-
- text: 'Elandorr riding Gilda'
|
13 |
output:
|
14 |
url:
|
15 |
"image_0.png"
|
16 |
|
17 |
-
- text: 'Elandorr riding Gilda'
|
18 |
output:
|
19 |
url:
|
20 |
"image_1.png"
|
21 |
|
22 |
-
- text: 'Elandorr riding Gilda'
|
23 |
output:
|
24 |
url:
|
25 |
"image_2.png"
|
26 |
|
27 |
-
- text: 'Elandorr riding Gilda'
|
28 |
output:
|
29 |
url:
|
30 |
"image_3.png"
|
31 |
|
32 |
base_model: stabilityai/stable-diffusion-xl-base-1.0
|
33 |
-
instance_prompt:
|
34 |
license: openrail++
|
35 |
---
|
36 |
|
@@ -51,7 +51,7 @@ license: openrail++
|
|
51 |
- On AUTOMATIC1111, load the LoRA by adding `<lora:dnd-SDXL-LoRA:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
|
52 |
- *Embeddings*: download **[`dnd-SDXL-LoRA_emb.safetensors` here 💾](/weasley24/dnd-SDXL-LoRA/blob/main/dnd-SDXL-LoRA_emb.safetensors)**.
|
53 |
- Place it on it on your `embeddings` folder
|
54 |
-
- Use it by adding `dnd-SDXL-LoRA_emb` to your prompt. For example,
|
55 |
(you need both the LoRA and the embeddings as they were trained together for this LoRA)
|
56 |
|
57 |
|
@@ -67,10 +67,10 @@ pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusi
|
|
67 |
pipeline.load_lora_weights('weasley24/dnd-SDXL-LoRA', weight_name='pytorch_lora_weights.safetensors')
|
68 |
embedding_path = hf_hub_download(repo_id='weasley24/dnd-SDXL-LoRA', filename='dnd-SDXL-LoRA_emb.safetensors', repo_type="model")
|
69 |
state_dict = load_file(embedding_path)
|
70 |
-
pipeline.load_textual_inversion(state_dict["clip_l"], token=[], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)
|
71 |
-
pipeline.load_textual_inversion(state_dict["clip_g"], token=[], text_encoder=pipeline.text_encoder_2, tokenizer=pipeline.tokenizer_2)
|
72 |
|
73 |
-
image = pipeline('Elandorr riding Gilda').images[0]
|
74 |
```
|
75 |
|
76 |
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)
|
|
|
9 |
- template:sd-lora
|
10 |
widget:
|
11 |
|
12 |
+
- text: 'DND <s0><s1> Elandorr riding Gilda, scene <s0><s1>'
|
13 |
output:
|
14 |
url:
|
15 |
"image_0.png"
|
16 |
|
17 |
+
- text: 'DND <s0><s1> Elandorr riding Gilda, scene <s0><s1>'
|
18 |
output:
|
19 |
url:
|
20 |
"image_1.png"
|
21 |
|
22 |
+
- text: 'DND <s0><s1> Elandorr riding Gilda, scene <s0><s1>'
|
23 |
output:
|
24 |
url:
|
25 |
"image_2.png"
|
26 |
|
27 |
+
- text: 'DND <s0><s1> Elandorr riding Gilda, scene <s0><s1>'
|
28 |
output:
|
29 |
url:
|
30 |
"image_3.png"
|
31 |
|
32 |
base_model: stabilityai/stable-diffusion-xl-base-1.0
|
33 |
+
instance_prompt: DND <s0><s1>
|
34 |
license: openrail++
|
35 |
---
|
36 |
|
|
|
51 |
- On AUTOMATIC1111, load the LoRA by adding `<lora:dnd-SDXL-LoRA:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
|
52 |
- *Embeddings*: download **[`dnd-SDXL-LoRA_emb.safetensors` here 💾](/weasley24/dnd-SDXL-LoRA/blob/main/dnd-SDXL-LoRA_emb.safetensors)**.
|
53 |
- Place it on it on your `embeddings` folder
|
54 |
+
- Use it by adding `dnd-SDXL-LoRA_emb` to your prompt. For example, `DND dnd-SDXL-LoRA_emb`
|
55 |
(you need both the LoRA and the embeddings as they were trained together for this LoRA)
|
56 |
|
57 |
|
|
|
67 |
pipeline.load_lora_weights('weasley24/dnd-SDXL-LoRA', weight_name='pytorch_lora_weights.safetensors')
|
68 |
embedding_path = hf_hub_download(repo_id='weasley24/dnd-SDXL-LoRA', filename='dnd-SDXL-LoRA_emb.safetensors', repo_type="model")
|
69 |
state_dict = load_file(embedding_path)
|
70 |
+
pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)
|
71 |
+
pipeline.load_textual_inversion(state_dict["clip_g"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder_2, tokenizer=pipeline.tokenizer_2)
|
72 |
|
73 |
+
image = pipeline('DND <s0><s1> Elandorr riding Gilda, scene <s0><s1>').images[0]
|
74 |
```
|
75 |
|
76 |
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)
|
dnd-SDXL-LoRA.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 46698072
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6bb273e6c1922ea5477d119d6d356d136c23db9043984fa4dcf3806ce47c60bc
|
3 |
size 46698072
|
image_0.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
image_1.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
image_2.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
image_3.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
pytorch_lora_weights.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 46615272
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:525f6714864de9ff922719de8569ddcdc181f7ef6c95e7ca92a18eeb21d6443c
|
3 |
size 46615272
|