From 059f869737c697b0d65de70e9e8c8b3b5e388d47 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Tue, 19 Mar 2024 13:10:18 +1100 Subject: [PATCH] tidy(config): remove `ignore_missing_core_models` CLI arg and setting This is now a no-op, with all models being downloaded when they are first requested. --- invokeai/app/services/config/config_default.py | 2 -- invokeai/frontend/cli/arg_parser.py | 5 ----- 2 files changed, 7 deletions(-) diff --git a/invokeai/app/services/config/config_default.py b/invokeai/app/services/config/config_default.py index e19cee19bb..9927aa3c0d 100644 --- a/invokeai/app/services/config/config_default.py +++ b/invokeai/app/services/config/config_default.py @@ -82,7 +82,6 @@ class InvokeAIAppConfig(BaseSettings): ssl_keyfile: SSL key file for HTTPS. See https://www.uvicorn.org/settings/#https. log_tokenization: Enable logging of parsed prompt tokens. patchmatch: Enable patchmatch inpaint code. - ignore_missing_core_models: Ignore missing core models on startup. If `True`, the app will attempt to download missing models on startup. autoimport_dir: Path to a directory of models files to be imported on startup. models_dir: Path to the models directory. convert_cache_dir: Path to the converted models cache directory. When loading a non-diffusers model, it will be converted and store on disk at this location. @@ -140,7 +139,6 @@ class InvokeAIAppConfig(BaseSettings): # MISC FEATURES log_tokenization: bool = Field(default=False, description="Enable logging of parsed prompt tokens.") patchmatch: bool = Field(default=True, description="Enable patchmatch inpaint code.") - ignore_missing_core_models: bool = Field(default=False, description="Ignore missing core models on startup. If `True`, the app will attempt to download missing models on startup.") # PATHS autoimport_dir: Path = Field(default=Path("autoimport"), description="Path to a directory of models files to be imported on startup.") diff --git a/invokeai/frontend/cli/arg_parser.py b/invokeai/frontend/cli/arg_parser.py index 452cb38246..7db06fddd9 100644 --- a/invokeai/frontend/cli/arg_parser.py +++ b/invokeai/frontend/cli/arg_parser.py @@ -9,13 +9,8 @@ If omitted, the app will search for the root directory in the following order: - The currently active virtual environment's parent directory - `$HOME/invokeai`""" -_ignore_missing_core_models_help = r"""If set, the app will ignore missing core diffusers conversion models. -These are required to use checkpoint/safetensors models. -If you only use diffusers models, you can safely enable this.""" - _parser = ArgumentParser(description="Invoke Studio", formatter_class=RawTextHelpFormatter) _parser.add_argument("--root", type=str, help=_root_help) -_parser.add_argument("--ignore_missing_core_models", action="store_true", help=_ignore_missing_core_models_help) _parser.add_argument("--version", action="version", version=__version__, help="Displays the version and exits.")