Skip to content

Commit 3ac2357

Browse files
patrykbartpatryk-bartkowiak-tcllinoytsaban
authored
changed positional parameters to named parameters like in docs (huggingface#6905)
Co-authored-by: Patryk Bartkowiak <[email protected]> Co-authored-by: Linoy Tsaban <[email protected]>
1 parent 17808a0 commit 3ac2357

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/convert_diffusers_sdxl_lora_to_webui.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,15 @@ def convert_and_save(input_lora, output_lora=None):
3939
if __name__ == "__main__":
4040
parser = argparse.ArgumentParser(description="Convert LoRA model to PEFT and then to Kohya format.")
4141
parser.add_argument(
42-
"input_lora",
42+
"--input_lora",
4343
type=str,
44+
required=True,
4445
help="Path to the input LoRA model file in the diffusers format.",
4546
)
4647
parser.add_argument(
47-
"output_lora",
48+
"--output_lora",
4849
type=str,
49-
nargs="?",
50+
required=False,
5051
help="Path for the converted LoRA (safetensors format for AUTOMATIC1111, ComfyUI, etc.). Optional, defaults to input name with a _webui suffix.",
5152
)
5253

0 commit comments

Comments
 (0)