mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(config): restore ignore_missing_core_models arg
This commit is contained in:
parent
cb180909f7
commit
5179587b5a
@ -7,6 +7,7 @@ import sys
|
||||
from invokeai.app.services.config import InvokeAIAppConfig
|
||||
|
||||
|
||||
# TODO(psyche): Should this also check for things like ESRGAN models, database, etc?
|
||||
def validate_root_structure(config: InvokeAIAppConfig) -> None:
|
||||
assert config.db_path.parent.exists(), f"{config.db_path.parent} not found"
|
||||
assert config.models_path.exists(), f"{config.models_path} not found"
|
||||
|
@ -3,13 +3,19 @@ from typing import Optional
|
||||
|
||||
from invokeai.version import __version__
|
||||
|
||||
_root_help = r"""Sets a root directory for the app. If omitted, the app will search for the root directory in the following order:
|
||||
_root_help = r"""Sets a root directory for the app.
|
||||
If omitted, the app will search for the root directory in the following order:
|
||||
- The `$INVOKEAI_ROOT` environment variable
|
||||
- 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.")
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user