From a32f6e9ea79369880cf9f9719f845deb6e0587ae Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Fri, 3 Feb 2023 10:57:15 -0500 Subject: [PATCH 1/3] use torch-cu117 from download.torch.org rather than pypi --- installer/installer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/installer/installer.py b/installer/installer.py index 888ed42b8b..7957003c22 100644 --- a/installer/installer.py +++ b/installer/installer.py @@ -436,6 +436,7 @@ def get_torch_source() -> (Union[str, None],str): url = "https://download.pytorch.org/whl/cpu" if device == 'cuda': + url = 'https://download.pytorch.org/whl/cu117' optional_modules = '[xformers]' # in all other cases, Torch wheels should be coming from PyPi as of Torch 1.13 From c50b64ec1d5ab8dc92da5e50b310783e9bbe990c Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Fri, 3 Feb 2023 13:30:21 -0500 Subject: [PATCH 2/3] correct default menu entry in install.bat file --- installer/templates/invoke.bat.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/templates/invoke.bat.in b/installer/templates/invoke.bat.in index 4aab896973..9fd05ca37e 100644 --- a/installer/templates/invoke.bat.in +++ b/installer/templates/invoke.bat.in @@ -13,7 +13,7 @@ echo 3. run textual inversion training echo 4. merge models (diffusers type only) echo 5. re-run the configure script to download new models echo 6. open the developer console -set /P restore="Please enter 1, 2, 3, 4 or 5: [5] " +set /P restore="Please enter 1, 2, 3, 4 or 5: [2] " if not defined restore set restore=2 IF /I "%restore%" == "1" ( echo Starting the InvokeAI command-line.. From 7fa3a499bb61fdf609040c61954c8cdaacdd8ca9 Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Fri, 3 Feb 2023 16:06:49 -0500 Subject: [PATCH 3/3] fix crash on Windows10 when configure script given no HF token Crashes would occur in the invokeai-configure script if no HF token was found in cache and the user declines to provide one when prompted. The reason appears to be that on Linux systems getpass_asterisk() raises an EOFError when no input is provided On windows10, getpass_asterisk() does not raise the EOFError, but returns an empty string instead. This patch detects this and raises the exception so that the control logic is preserved. --- ldm/invoke/config/configure_invokeai.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ldm/invoke/config/configure_invokeai.py b/ldm/invoke/config/configure_invokeai.py index bb3658005f..0a95cf16db 100755 --- a/ldm/invoke/config/configure_invokeai.py +++ b/ldm/invoke/config/configure_invokeai.py @@ -320,6 +320,8 @@ You may re-run the configuration script again in the future if you do not wish t while again: try: access_token = getpass_asterisk.getpass_asterisk(prompt="HF Token ❯ ") + if access_token is None or len(access_token)==0: + raise EOFError HfLogin(access_token) access_token = HfFolder.get_token() again = False