weasley24 commited on
Commit
5a2068b
·
verified ·
1 Parent(s): 662b0ee

End of training

Browse files
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:52085251a8a6cebcb30ee507fc2db5c05fd67977cd81187d78dbd306c356edb5
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

  • SHA256: 2bb5d76a8381f567d1b6c05a43a68411c93c250985b1d3c07870539bc380e9e9
  • Pointer size: 132 Bytes
  • Size of remote file: 1.66 MB

Git LFS Details

  • SHA256: aa45055315cfa8195dec00624d0a3d04b87d9c65513490b587769b7a0dd01dde
  • Pointer size: 132 Bytes
  • Size of remote file: 1.78 MB
image_1.png CHANGED

Git LFS Details

  • SHA256: 44e2487093a588daf2f0228cff44982ecff2ca810660fc6e0dedd341ee409f8a
  • Pointer size: 132 Bytes
  • Size of remote file: 1.67 MB

Git LFS Details

  • SHA256: 549a956ff633bd17adf1626024a9d8c57831c6078f4a96639c56599d516019be
  • Pointer size: 132 Bytes
  • Size of remote file: 1.85 MB
image_2.png CHANGED

Git LFS Details

  • SHA256: a31badca06f355af86d9741b4a464b339550d9bc8d355a1d9d1e04221eca06fa
  • Pointer size: 132 Bytes
  • Size of remote file: 1.71 MB

Git LFS Details

  • SHA256: d3bab3b7a9c79bd13e9811670f1655b148e956d9614bf3533fca0d260448d857
  • Pointer size: 132 Bytes
  • Size of remote file: 1.79 MB
image_3.png CHANGED

Git LFS Details

  • SHA256: b9cdac69d02354babd5f8bacfc1efb75eb326b13ec18366f5169b36470446794
  • Pointer size: 132 Bytes
  • Size of remote file: 1.86 MB

Git LFS Details

  • SHA256: c551a52a5610fcba3a24135899df6574e6b7dde68d29f94e7c590c5878889dd3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.81 MB
pytorch_lora_weights.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:61c2e4c730ac8a284daf72383ff59dfc441c0fb47067042f2b51b4fe57c567a6
3
  size 46615272
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:525f6714864de9ff922719de8569ddcdc181f7ef6c95e7ca92a18eeb21d6443c
3
  size 46615272