From ec48779080a160b324d521ac0379a25da4150e89 Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Wed, 2 Aug 2023 14:28:19 -0400 Subject: [PATCH] blackify --- invokeai/app/services/config.py | 1 + invokeai/backend/install/invokeai_configure.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/invokeai/app/services/config.py b/invokeai/app/services/config.py index 25a7b8ffb3..271d617ff8 100644 --- a/invokeai/app/services/config.py +++ b/invokeai/app/services/config.py @@ -175,6 +175,7 @@ DB_FILE = Path("invokeai.db") LEGACY_INIT_FILE = Path("invokeai.init") DEFAULT_MAX_VRAM = 0.5 + class InvokeAISettings(BaseSettings): """ Runtime configuration settings in which default values are diff --git a/invokeai/backend/install/invokeai_configure.py b/invokeai/backend/install/invokeai_configure.py index c329d7b3fb..692eff8867 100755 --- a/invokeai/backend/install/invokeai_configure.py +++ b/invokeai/backend/install/invokeai_configure.py @@ -86,7 +86,7 @@ _, MAX_VRAM = torch.cuda.mem_get_info() if HAS_CUDA else (0, 0) MAX_VRAM /= GB -MAX_RAM = psutil.virtual_memory().total / GB +MAX_RAM = psutil.virtual_memory().total / GB INIT_FILE_PREAMBLE = """# InvokeAI initialization file # This is the InvokeAI initialization file, which contains command-line default values.