Update README.md
Browse files
README.md
CHANGED
@@ -8,22 +8,22 @@ tags:
|
|
8 |
- template:sd-lora
|
9 |
widget:
|
10 |
|
11 |
-
- text: 'a lego set
|
12 |
output:
|
13 |
url:
|
14 |
"image_0.png"
|
15 |
|
16 |
-
- text: 'a lego set
|
17 |
output:
|
18 |
url:
|
19 |
"image_1.png"
|
20 |
|
21 |
-
- text: 'a lego set
|
22 |
output:
|
23 |
url:
|
24 |
"image_2.png"
|
25 |
|
26 |
-
- text: 'a lego set
|
27 |
output:
|
28 |
url:
|
29 |
"image_3.png"
|
@@ -69,7 +69,7 @@ state_dict = load_file(embedding_path)
|
|
69 |
pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)
|
70 |
pipeline.load_textual_inversion(state_dict["clip_g"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder_2, tokenizer=pipeline.tokenizer_2)
|
71 |
|
72 |
-
image = pipeline('a lego set
|
73 |
```
|
74 |
|
75 |
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)
|
|
|
8 |
- template:sd-lora
|
9 |
widget:
|
10 |
|
11 |
+
- text: 'a lego set in the style of <s0><s1>, an astronaut riding a horse'
|
12 |
output:
|
13 |
url:
|
14 |
"image_0.png"
|
15 |
|
16 |
+
- text: 'a lego set in the style of <s0><s1>, an astronaut riding a horse'
|
17 |
output:
|
18 |
url:
|
19 |
"image_1.png"
|
20 |
|
21 |
+
- text: 'a lego set in the style of <s0><s1>, an astronaut riding a horse'
|
22 |
output:
|
23 |
url:
|
24 |
"image_2.png"
|
25 |
|
26 |
+
- text: 'a lego set in the style of <s0><s1>, an astronaut riding a horse'
|
27 |
output:
|
28 |
url:
|
29 |
"image_3.png"
|
|
|
69 |
pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)
|
70 |
pipeline.load_textual_inversion(state_dict["clip_g"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder_2, tokenizer=pipeline.tokenizer_2)
|
71 |
|
72 |
+
image = pipeline('a lego set in the style of <s0><s1>, an astronaut riding a horse').images[0]
|
73 |
```
|
74 |
|
75 |
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)
|