linoyts HF staff commited on
Commit
72ac8bf
•
1 Parent(s): 2e64f34

End of training

Browse files
.gitattributes CHANGED
@@ -36,3 +36,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
36
  image_0.png filter=lfs diff=lfs merge=lfs -text
37
  image_1.png filter=lfs diff=lfs merge=lfs -text
38
  image_2.png filter=lfs diff=lfs merge=lfs -text
 
 
36
  image_0.png filter=lfs diff=lfs merge=lfs -text
37
  image_1.png filter=lfs diff=lfs merge=lfs -text
38
  image_2.png filter=lfs diff=lfs merge=lfs -text
39
+ image_3.png filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  tags:
3
  - stable-diffusion-xl
4
  - stable-diffusion-xl-diffusers
@@ -7,30 +8,31 @@ tags:
7
  - diffusers
8
  - dora
9
  - template:sd-lora
 
10
  widget:
11
 
12
- - text: 'a <s0><s1> emoji dressed as yoda'
13
  output:
14
  url:
15
  "image_0.png"
16
 
17
- - text: 'a <s0><s1> emoji dressed as yoda'
18
  output:
19
  url:
20
  "image_1.png"
21
 
22
- - text: 'a <s0><s1> emoji dressed as yoda'
23
  output:
24
  url:
25
  "image_2.png"
26
 
27
- - text: 'a <s0><s1> emoji dressed as yoda'
28
  output:
29
  url:
30
  "image_3.png"
31
 
32
  base_model: stabilityai/stable-diffusion-xl-base-1.0
33
- instance_prompt: a <s0><s1> emoji
34
  license: openrail++
35
  ---
36
 
@@ -49,39 +51,25 @@ license: openrail++
49
  - **LoRA**: download **[`huggy_dora_v3.safetensors` here 💾](/linoyts/huggy_dora_v3/blob/main/huggy_dora_v3.safetensors)**.
50
  - Place it on your `models/Lora` folder.
51
  - On AUTOMATIC1111, load the LoRA by adding `<lora:huggy_dora_v3:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
52
- - *Embeddings*: download **[`huggy_dora_v3_emb.safetensors` here 💾](/linoyts/huggy_dora_v3/blob/main/huggy_dora_v3_emb.safetensors)**.
53
- - Place it on it on your `embeddings` folder
54
- - Use it by adding `huggy_dora_v3_emb` to your prompt. For example, `a huggy_dora_v3_emb emoji`
55
- (you need both the LoRA and the embeddings as they were trained together for this LoRA)
56
-
57
 
58
  ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
59
 
60
  ```py
61
  from diffusers import AutoPipelineForText2Image
62
  import torch
63
- from huggingface_hub import hf_hub_download
64
- from safetensors.torch import load_file
65
-
66
  pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to('cuda')
67
  pipeline.load_lora_weights('linoyts/huggy_dora_v3', weight_name='pytorch_lora_weights.safetensors')
68
- embedding_path = hf_hub_download(repo_id='linoyts/huggy_dora_v3', filename='huggy_dora_v3_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('a <s0><s1> emoji dressed as yoda').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)
77
 
78
  ## Trigger words
79
 
80
- To trigger image generation of trained concept(or concepts) replace each concept identifier in you prompt with the new inserted tokens:
81
-
82
- to trigger concept `TOK` → use `<s0><s1>` in your prompt
83
-
84
-
85
 
86
  ## Details
87
  All [Files & versions](/linoyts/huggy_dora_v3/tree/main).
@@ -90,7 +78,7 @@ The weights were trained using [🧨 diffusers Advanced Dreambooth Training Scri
90
 
91
  LoRA for the text encoder was enabled. False.
92
 
93
- Pivotal tuning was enabled: True.
94
 
95
  Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
96
 
 
1
  ---
2
+
3
  tags:
4
  - stable-diffusion-xl
5
  - stable-diffusion-xl-diffusers
 
8
  - diffusers
9
  - dora
10
  - template:sd-lora
11
+
12
  widget:
13
 
14
+ - text: 'a TOK emoji dressed as an easter bunny'
15
  output:
16
  url:
17
  "image_0.png"
18
 
19
+ - text: 'a TOK emoji dressed as an easter bunny'
20
  output:
21
  url:
22
  "image_1.png"
23
 
24
+ - text: 'a TOK emoji dressed as an easter bunny'
25
  output:
26
  url:
27
  "image_2.png"
28
 
29
+ - text: 'a TOK emoji dressed as an easter bunny'
30
  output:
31
  url:
32
  "image_3.png"
33
 
34
  base_model: stabilityai/stable-diffusion-xl-base-1.0
35
+ instance_prompt: a TOK emoji
36
  license: openrail++
37
  ---
38
 
 
51
  - **LoRA**: download **[`huggy_dora_v3.safetensors` here 💾](/linoyts/huggy_dora_v3/blob/main/huggy_dora_v3.safetensors)**.
52
  - Place it on your `models/Lora` folder.
53
  - On AUTOMATIC1111, load the LoRA by adding `<lora:huggy_dora_v3:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
54
+
 
 
 
 
55
 
56
  ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
57
 
58
  ```py
59
  from diffusers import AutoPipelineForText2Image
60
  import torch
61
+
 
 
62
  pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to('cuda')
63
  pipeline.load_lora_weights('linoyts/huggy_dora_v3', weight_name='pytorch_lora_weights.safetensors')
64
+
65
+ image = pipeline('a TOK emoji dressed as an easter bunny').images[0]
 
 
 
 
66
  ```
67
 
68
  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)
69
 
70
  ## Trigger words
71
 
72
+ You should use a TOK emoji to trigger the image generation.
 
 
 
 
73
 
74
  ## Details
75
  All [Files & versions](/linoyts/huggy_dora_v3/tree/main).
 
78
 
79
  LoRA for the text encoder was enabled. False.
80
 
81
+ Pivotal tuning was enabled: False.
82
 
83
  Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
84
 
huggy_dora_v3.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:77cd3b4437e687814b81be5d1efa3e8f4057512683ba36f6d58c7ca34119c5bb
3
  size 188798032
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5b9a86af3cd20400f8d110e5942a8d1f6933e236a7d51059e6f7fadb4aff365
3
  size 188798032
image_0.png CHANGED

Git LFS Details

  • SHA256: d5d9cd0edb8cfb3439e08e3b8750f73e84ec9a0e052cc3b85b8ced1cb52003c0
  • Pointer size: 132 Bytes
  • Size of remote file: 1.29 MB

Git LFS Details

  • SHA256: 7f24037f5b29330c06bfaf425233b769f42fae226c3bc9f2c7fa7e11ad16a118
  • Pointer size: 132 Bytes
  • Size of remote file: 1.44 MB
image_1.png CHANGED

Git LFS Details

  • SHA256: 9363bd08c986f1f8d2a84cf69ad3bb00bb0ee15c76312ea6adc42f6fe989e9a8
  • Pointer size: 132 Bytes
  • Size of remote file: 1.11 MB

Git LFS Details

  • SHA256: 9e0d295a2f4d1abe349e55551c5487d479a37a4c3b7f7982614ced2317b01c33
  • Pointer size: 132 Bytes
  • Size of remote file: 1.1 MB
image_2.png CHANGED

Git LFS Details

  • SHA256: 69421022dd96f027b7d6ab708101868ebbed8de53a832d47522ea35642c2befe
  • Pointer size: 132 Bytes
  • Size of remote file: 1.22 MB

Git LFS Details

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

Git LFS Details

  • SHA256: 477869c81a8f2d63eb8f379f24837de9f4ed78ee36eff990de8b43d521ee407f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.49 MB
pytorch_lora_weights.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d957f295acb548499257fb5136762a6147ebaa73aa0adff7c50e4afe969bf848
3
  size 188712456
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f2ee726538cef3b3952b640480a54734dd08c8d80651e364b617880e1afc054
3
  size 188712456