mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-27 17:51:22 +00:00
Add --forge-ref-a1111-home cmd arg to reference existing A1111 checkout (#203)
* Add --forge-ref-a1111-home cmd arg to reference existing A1111 checkout * nit
This commit is contained in:
@@ -2,6 +2,7 @@ import argparse
|
||||
import json
|
||||
import os
|
||||
from modules.paths_internal import 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 = args_parser.parser
|
||||
@@ -122,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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user