From 8994d79a78c13b1ea44591b48c1afb9b03a71be3 Mon Sep 17 00:00:00 2001 From: freespirit Date: Thu, 29 Sep 2022 12:36:41 +0300 Subject: [PATCH] Fix the expected name of the from_file argument in txt2img The argument parser expects an argument with the name from-file but the code looks for from_file. This issue doesn't break the code but may be confusing for users of the script. --- scripts/txt2img.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/txt2img.py b/scripts/txt2img.py index 59c16a1db8..222c68f8cc 100644 --- a/scripts/txt2img.py +++ b/scripts/txt2img.py @@ -197,7 +197,7 @@ def main(): help="unconditional guidance scale: eps = eps(x, empty) + scale * (eps(x, cond) - eps(x, empty))", ) parser.add_argument( - "--from-file", + "--from_file", type=str, help="if specified, load prompts from this file", )