This commit is contained in:
Lincoln Stein 2023-08-02 09:44:06 -04:00
parent 880727436c
commit 29ac252501
2 changed files with 5 additions and 2 deletions

View File

@ -175,6 +175,7 @@ DB_FILE = Path("invokeai.db")
LEGACY_INIT_FILE = Path("invokeai.init")
DEFAULT_MAX_VRAM = 2.75
class InvokeAISettings(BaseSettings):
"""
Runtime configuration settings in which default values are

View File

@ -574,6 +574,7 @@ def default_startup_options(init_file: Path) -> Namespace:
opts.max_vram_cache_size = round((MAX_VRAM * MAX_VRAM_CACHE_RATIO) * 4) / 4
return opts
def default_user_selections(program_opts: Namespace) -> InstallSelections:
try:
installer = ModelInstall(config)
@ -713,6 +714,7 @@ def migrate_init_file(legacy_format: Path):
# -------------------------------------
def migrate_models(root: Path):
from invokeai.backend.install.migrate_to_3 import do_migrate
do_migrate(root, root)