changed positional parameters to named parameters like in docs (#6905)
Co-authored-by: Patryk Bartkowiak <patryk.bartkowiak@tcl.com> Co-authored-by: Linoy Tsaban <57615435+linoytsaban@users.noreply.github.com>
This commit is contained in:
parent
17808a091e
commit
3ac2357794
@ -39,14 +39,15 @@ def convert_and_save(input_lora, output_lora=None):
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
parser = argparse.ArgumentParser(description="Convert LoRA model to PEFT and then to Kohya format.")
|
parser = argparse.ArgumentParser(description="Convert LoRA model to PEFT and then to Kohya format.")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"input_lora",
|
"--input_lora",
|
||||||
type=str,
|
type=str,
|
||||||
|
required=True,
|
||||||
help="Path to the input LoRA model file in the diffusers format.",
|
help="Path to the input LoRA model file in the diffusers format.",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"output_lora",
|
"--output_lora",
|
||||||
type=str,
|
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.",
|
help="Path for the converted LoRA (safetensors format for AUTOMATIC1111, ComfyUI, etc.). Optional, defaults to input name with a _webui suffix.",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user