Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Overbill1683
Stable Diffusion Webui
提交
636ff513
S
Stable Diffusion Webui
项目概览
Overbill1683
/
Stable Diffusion Webui
10 个月 前同步成功
通知
1743
Star
81
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
分析
仓库
DevOps
项目成员
Pages
S
Stable Diffusion Webui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Pages
分析
分析
仓库分析
DevOps
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
提交
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
636ff513
编写于
7月 21, 2023
作者:
A
AUTOMATIC1111
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Merge pull request #11920 from wfjsw/typo-fix-1
typo fix
上级
51206edb
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
5 deletion
+5
-5
modules/launch_utils.py
modules/launch_utils.py
+3
-3
modules/scripts.py
modules/scripts.py
+1
-1
webui.py
webui.py
+1
-1
未找到文件。
modules/launch_utils.py
浏览文件 @
636ff513
...
...
@@ -233,7 +233,7 @@ def run_extensions_installers(settings_file):
re_requirement
=
re
.
compile
(
r
"\s*([-_a-zA-Z0-9]+)\s*(?:==\s*([-+_.a-zA-Z0-9]+))?\s*"
)
def
requrements_met
(
requirements_file
):
def
requ
i
rements_met
(
requirements_file
):
"""
Does a simple parse of a requirements.txt file to determine if all rerqirements in it
are already installed. Returns True if so, False if not installed or parsing fails.
...
...
@@ -293,7 +293,7 @@ def prepare_environment():
try
:
# the existance of this file is a signal to webui.sh/bat that webui needs to be restarted when it stops execution
os
.
remove
(
os
.
path
.
join
(
script_path
,
"tmp"
,
"restart"
))
os
.
environ
.
setdefault
(
'SD_WEBUI_RESTARTING
'
,
'1'
)
os
.
environ
.
setdefault
(
'SD_WEBUI_RESTARTING'
,
'1'
)
except
OSError
:
pass
...
...
@@ -354,7 +354,7 @@ def prepare_environment():
if
not
os
.
path
.
isfile
(
requirements_file
):
requirements_file
=
os
.
path
.
join
(
script_path
,
requirements_file
)
if
not
requrements_met
(
requirements_file
):
if
not
requ
i
rements_met
(
requirements_file
):
run_pip
(
f
"install -r
\"
{
requirements_file
}
\"
"
,
"requirements"
)
run_extensions_installers
(
settings_file
=
args
.
ui_settings_file
)
...
...
modules/scripts.py
浏览文件 @
636ff513
...
...
@@ -119,7 +119,7 @@ class Script:
def
after_extra_networks_activate
(
self
,
p
,
*
args
,
**
kwargs
):
"""
Calledafter extra networks activation, before conds calculation
Called
after extra networks activation, before conds calculation
allow modification of the network after extra networks activation been applied
won't be call if p.disable_extra_networks
...
...
webui.py
浏览文件 @
636ff513
...
...
@@ -407,7 +407,7 @@ def webui():
ssl_verify
=
cmd_opts
.
disable_tls_verify
,
debug
=
cmd_opts
.
gradio_debug
,
auth
=
gradio_auth_creds
,
inbrowser
=
cmd_opts
.
autolaunch
and
os
.
getenv
(
'SD_WEBUI_RESTARTING
'
)
!=
'1'
,
inbrowser
=
cmd_opts
.
autolaunch
and
os
.
getenv
(
'SD_WEBUI_RESTARTING'
)
!=
'1'
,
prevent_thread_lock
=
True
,
allowed_paths
=
cmd_opts
.
gradio_allowed_path
,
app_kwargs
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录