From 3ac235779484a6410cf0beaa5b57c4fd495bad86 Mon Sep 17 00:00:00 2001 From: Patryk Bartkowiak Date: Thu, 8 Feb 2024 17:09:03 +0100 Subject: [PATCH] changed positional parameters to named parameters like in docs (#6905) Co-authored-by: Patryk Bartkowiak Co-authored-by: Linoy Tsaban <57615435+linoytsaban@users.noreply.github.com> --- scripts/convert_diffusers_sdxl_lora_to_webui.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/convert_diffusers_sdxl_lora_to_webui.py b/scripts/convert_diffusers_sdxl_lora_to_webui.py index c054226fa2..dfb3871275 100644 --- a/scripts/convert_diffusers_sdxl_lora_to_webui.py +++ b/scripts/convert_diffusers_sdxl_lora_to_webui.py @@ -39,14 +39,15 @@ def convert_and_save(input_lora, output_lora=None): if __name__ == "__main__": parser = argparse.ArgumentParser(description="Convert LoRA model to PEFT and then to Kohya format.") parser.add_argument( - "input_lora", + "--input_lora", type=str, + required=True, help="Path to the input LoRA model file in the diffusers format.", ) parser.add_argument( - "output_lora", + "--output_lora", type=str, - nargs="?", + required=False, help="Path for the converted LoRA (safetensors format for AUTOMATIC1111, ComfyUI, etc.). Optional, defaults to input name with a _webui suffix.", )