Merge branch 'main' into tdd

This commit is contained in:
lllyasviel
2024-02-17 07:40:16 -08:00
committed by GitHub
1061 changed files with 155274 additions and 3079 deletions

View File

@@ -2,8 +2,10 @@ import argparse
import json
import os
from modules.paths_internal import normalized_filepath, models_path, script_path, data_path, extensions_dir, extensions_builtin_dir, sd_default_config, sd_model_file # noqa: F401
from pathlib import Path
from ldm_patched.modules import args_parser
parser = argparse.ArgumentParser()
parser = args_parser.parser
parser.add_argument("-f", action='store_true', help=argparse.SUPPRESS) # allows running as root; implemented outside of webui
parser.add_argument("--update-all-extensions", action='store_true', help="launch.py argument: download updates for all extensions when starting the program")
@@ -121,3 +123,23 @@ parser.add_argument('--timeout-keep-alive', type=int, default=30, help='set time
parser.add_argument("--disable-all-extensions", action='store_true', help="prevent all extensions from running regardless of any other settings", default=False)
parser.add_argument("--disable-extra-extensions", action='store_true', help="prevent all extensions except built-in from running regardless of any other settings", default=False)
parser.add_argument("--skip-load-model-at-start", action='store_true', help="if load a model at web start, only take effect when --nowebui", )
# Arguments added by forge.
parser.add_argument(
'--forge-ref-a1111-home',
type=Path,
help="Look for models in an existing A1111 checkout's path",
default=None
)
parser.add_argument(
"--controlnet-dir",
type=Path,
help="Path to directory with ControlNet models",
default=None,
)
parser.add_argument(
"--controlnet-preprocessor-models-dir",
type=Path,
help="Path to directory with annotator model directories",
default=None,
)