1 Star 0 Fork 0

ChocolateBlack/sd-webui-controlnet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
preload.py 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
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,
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xu_jing_yu/sd-webui-controlnet.git
git@gitee.com:xu_jing_yu/sd-webui-controlnet.git
xu_jing_yu
sd-webui-controlnet
sd-webui-controlnet
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385