ac374e0b97
* ini * remove shit * Create control_model.py * i * i * Update controlnet_supported.py * Update controlnet_supported.py * Update controlnet_supported.py * i * i * Update controlnet_supported.py * i * Update controlnet_supported.py * remove shits * remove shit * Update global_state.py * i * i * Update legacy_preprocessors.py * Update legacy_preprocessors.py * remove shit * Update batch_hijack.py * remove shit * remove shit * i * i * i * Update external_code.py * Update global_state.py * Update infotext.py * Update utils.py * Update external_code.py * i * i * i * Update controlnet_ui_group.py * remove shit * remove shit * i * Update controlnet.py * Update controlnet.py * Update controlnet.py * Update controlnet.py * Update controlnet.py * i * Update global_state.py * Update global_state.py * i * Update global_state.py * Update global_state.py * Update global_state.py * Update global_state.py * Update controlnet_ui_group.py * i * Update global_state.py * Update controlnet_ui_group.py * Update controlnet_ui_group.py * i * Update controlnet_ui_group.py * Update controlnet_ui_group.py * Update controlnet_ui_group.py * Update controlnet_ui_group.py
40 lines
1.2 KiB
Python
40 lines
1.2 KiB
Python
def preload(parser):
|
|
parser.add_argument(
|
|
"--controlnet-dir",
|
|
type=str,
|
|
help="Path to directory with ControlNet models",
|
|
default=None,
|
|
)
|
|
parser.add_argument(
|
|
"--controlnet-annotator-models-path",
|
|
type=str,
|
|
help="Path to directory with annotator model directories",
|
|
default=None,
|
|
)
|
|
parser.add_argument(
|
|
"--no-half-controlnet",
|
|
action="store_true",
|
|
help="do not switch the ControlNet models to 16-bit floats (only needed without --no-half)",
|
|
default=None,
|
|
)
|
|
# Setting default max_size=16 as each cache entry contains image as both key
|
|
# and value (Very costly).
|
|
parser.add_argument(
|
|
"--controlnet-preprocessor-cache-size",
|
|
type=int,
|
|
help="Cache size for controlnet preprocessor results",
|
|
default=16,
|
|
)
|
|
parser.add_argument(
|
|
"--controlnet-loglevel",
|
|
default="INFO",
|
|
choices=["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"],
|
|
help="Set the log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)",
|
|
)
|
|
parser.add_argument(
|
|
"--controlnet-tracemalloc",
|
|
action="store_true",
|
|
help="Enable memory tracing.",
|
|
default=None,
|
|
)
|