Skip to content

Commit 34338e8

Browse files
committed
Default LoRA_dict arguments have been changed.
1 parent ac3b404 commit 34338e8

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ The ```--lora_dict``` is in the format ```"{'LoRA_1 file path' : LoRA_1 scale ,
135135

136136

137137
Usage :
138-
```--lora_dict "{'C:/stable-diffusion-webui/models/Stable-diffusion/LoRA_1.safetensor' : 0.5 ,"E:/ComfyUI/models/LoRA_2.safetensor' : 0.7 }"```
138+
```--lora_dict "{'C:/stable-diffusion-webui/models/Stable-diffusion/LoRA_1.safetensor' : 0.5 ,'E:/ComfyUI/models/LoRA_2.safetensor' : 0.7 }"```
139139

140140
### Prompt
141141
```--prompt``` allows you to change Prompt.

examples/benchmark/multi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def run(
6262
lora_dict : Optional[Dict[str, float]], optional
6363
The lora_dict to load, by default None.
6464
Keys are the LoRA names and values are the LoRA scales.
65-
Example: {"LoRA_1" : 0.5 , "LoRA_2" : 0.7 ,...}
65+
Example: {'LoRA_1' : 0.5 , 'LoRA_2' : 0.7 ,...}
6666
prompt : str, optional
6767
The prompt to use, by default "1girl with brown dog hair, thick glasses, smiling".
6868
negative_prompt : str, optional

examples/benchmark/single.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def run(
4949
lora_dict : Optional[Dict[str, float]], optional
5050
The lora_dict to load, by default None.
5151
Keys are the LoRA names and values are the LoRA scales.
52-
Example: {"LoRA_1" : 0.5 , "LoRA_2" : 0.7 ,...}
52+
Example: {'LoRA_1' : 0.5 , 'LoRA_2' : 0.7 ,...}
5353
prompt : str, optional
5454
The prompt to use, by default "1girl with brown dog hair, thick glasses, smiling".
5555
negative_prompt : str, optional

examples/img2img/multi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def main(
4343
lora_dict : Optional[Dict[str, float]], optional
4444
The lora_dict to load, by default None.
4545
Keys are the LoRA names and values are the LoRA scales.
46-
Example: {"LoRA_1" : 0.5 , "LoRA_2" : 0.7 ,...}
46+
Example: {'LoRA_1' : 0.5 , 'LoRA_2' : 0.7 ,...}
4747
prompt : str
4848
The prompt to generate images from.
4949
negative_prompt : str, optional

examples/img2img/single.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def main(
4242
lora_dict : Optional[Dict[str, float]], optional
4343
The lora_dict to load, by default None.
4444
Keys are the LoRA names and values are the LoRA scales.
45-
Example: {"LoRA_1" : 0.5 , "LoRA_2" : 0.7 ,...}
45+
Example: {'LoRA_1' : 0.5 , 'LoRA_2' : 0.7 ,...}
4646
prompt : str
4747
The prompt to generate images from.
4848
negative_prompt : str, optional

examples/screen/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def image_generation_process(
9494
lora_dict : Optional[Dict[str, float]], optional
9595
The lora_dict to load, by default None.
9696
Keys are the LoRA names and values are the LoRA scales.
97-
Example: {"LoRA_1" : 0.5 , "LoRA_2" : 0.7 ,...}
97+
Example: {'LoRA_1' : 0.5 , 'LoRA_2' : 0.7 ,...}
9898
prompt : str
9999
The prompt to generate images from.
100100
negative_prompt : str, optional

examples/txt2img/multi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def main(
3535
lora_dict : Optional[Dict[str, float]], optional
3636
The lora_dict to load, by default None.
3737
Keys are the LoRA names and values are the LoRA scales.
38-
Example: {"LoRA_1" : 0.5 , "LoRA_2" : 0.7 ,...}
38+
Example: {'LoRA_1' : 0.5 , 'LoRA_2' : 0.7 ,...}
3939
prompt : str
4040
The prompt to generate images from.
4141
width : int, optional

examples/txt2img/single.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def main(
3636
lora_dict : Optional[Dict[str, float]], optional
3737
The lora_dict to load, by default None.
3838
Keys are the LoRA names and values are the LoRA scales.
39-
Example: {"LoRA_1" : 0.5 , "LoRA_2" : 0.7 ,...}
39+
Example: {'LoRA_1' : 0.5 , 'LoRA_2' : 0.7 ,...}
4040
prompt : str
4141
The prompt to generate images from.
4242
width : int, optional

examples/vid2vid/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def main(
4141
lora_dict : Optional[Dict[str, float]], optional
4242
The lora_dict to load, by default None.
4343
Keys are the LoRA names and values are the LoRA scales.
44-
Example: {"LoRA_1" : 0.5 , "LoRA_2" : 0.7 ,...}
44+
Example: {'LoRA_1' : 0.5 , 'LoRA_2' : 0.7 ,...}
4545
prompt : str
4646
The prompt to generate images from.
4747
scale : float, optional

utils/wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(
5959
lora_dict : Optional[Dict[str, float]], optional
6060
The lora_dict to load, by default None.
6161
Keys are the LoRA names and values are the LoRA scales.
62-
Example: {"LoRA_1" : 0.5 , "LoRA_2" : 0.7 ,...}
62+
Example: {'LoRA_1' : 0.5 , 'LoRA_2' : 0.7 ,...}
6363
mode : Literal["img2img", "txt2img"], optional
6464
txt2img or img2img, by default "img2img".
6565
output_type : Literal["pil", "pt", "np", "latent"], optional
@@ -378,7 +378,7 @@ def _load_model(
378378
lora_dict : Optional[Dict[str, float]], optional
379379
The lora_dict to load, by default None.
380380
Keys are the LoRA names and values are the LoRA scales.
381-
Example: {"LoRA_1" : 0.5 , "LoRA_2" : 0.7 ,...}
381+
Example: {'LoRA_1' : 0.5 , 'LoRA_2' : 0.7 ,...}
382382
lcm_lora_id : Optional[str], optional
383383
The lcm_lora_id to load, by default None.
384384
vae_id : Optional[str], optional

0 commit comments

Comments
 (0)