From 32857d81c5c001e4172b4c8f33016098c3fdbbfd Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Thu, 6 Apr 2023 15:36:05 -0400 Subject: [PATCH] prevent legacy CLI crash caused by removal of convert option - Compensatory change to the CLI that prevents it from crashing when it tries to import a model. - Bug introduced when the "convert" option removed from the model manager. --- invokeai/frontend/CLI/CLI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/CLI/CLI.py b/invokeai/frontend/CLI/CLI.py index 22e1bbd49d..7eb16c00ca 100644 --- a/invokeai/frontend/CLI/CLI.py +++ b/invokeai/frontend/CLI/CLI.py @@ -160,12 +160,12 @@ def main(): # try to autoconvert new models if path := opt.autoimport: gen.model_manager.heuristic_import( - str(path), convert=False, commit_to_conf=opt.conf + str(path), commit_to_conf=opt.conf ) if path := opt.autoconvert: gen.model_manager.heuristic_import( - str(path), convert=True, commit_to_conf=opt.conf + str(path), commit_to_conf=opt.conf ) # web server loops forever