Unverified Commit 3ac23577 authored by Patryk Bartkowiak's avatar Patryk Bartkowiak Committed by GitHub
Browse files

changed positional parameters to named parameters like in docs (#6905)


Co-authored-by: default avatarPatryk Bartkowiak <patryk.bartkowiak@tcl.com>
Co-authored-by: default avatarLinoy Tsaban <57615435+linoytsaban@users.noreply.github.com>
parent 17808a09
......@@ -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.",
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment