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.