From 16356d5225b51f51d89bc73d39cb3cdd8d757754 Mon Sep 17 00:00:00 2001 From: gogurtenjoyer <36354352+gogurtenjoyer@users.noreply.github.com> Date: Thu, 2 Feb 2023 19:33:17 -0800 Subject: [PATCH 1/2] small f-string fix in generate.py Probably low priority, but helps the error message be more clear by hopefully displaying model_name. --- ldm/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldm/generate.py b/ldm/generate.py index f3ad325409..c421a52802 100644 --- a/ldm/generate.py +++ b/ldm/generate.py @@ -847,7 +847,7 @@ class Generate: # the model cache does the loading and offloading cache = self.model_manager if not cache.valid_model(model_name): - raise KeyError('** "{model_name}" is not a known model name. Cannot change.') + raise KeyError(f'** "{model_name}" is not a known model name. Cannot change.') cache.print_vram_usage() From 813f92a1ae14f77900f6f0dd4883b58c20b93700 Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Fri, 3 Feb 2023 18:14:40 -0500 Subject: [PATCH 2/2] do not install the "update" script - The update script doesn't work yet, so we shouldn't install it. - For now, users update by re-running the installer. --- installer/installer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/installer/installer.py b/installer/installer.py index e9d2cc392c..86b062dc7b 100644 --- a/installer/installer.py +++ b/installer/installer.py @@ -355,7 +355,10 @@ class InvokeAiInstance: ext = "bat" if OS == "Windows" else "sh" - for script in ["invoke", "update"]: + #scripts = ['invoke', 'update'] + scripts = ['invoke'] + + for script in scripts: src = Path(__file__).parent / "templates" / f"{script}.{ext}.in" dest = self.runtime / f"{script}.{ext}" shutil.copy(src, dest)