Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Overbill1683
Stable Diffusion Webui
提交
6033de18
S
Stable Diffusion Webui
项目概览
Overbill1683
/
Stable Diffusion Webui
10 个月 前同步成功
通知
1751
Star
81
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
分析
仓库
DevOps
项目成员
Pages
S
Stable Diffusion Webui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Pages
分析
分析
仓库分析
DevOps
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
提交
体验新版 GitCode,发现更多精彩内容 >>
提交
6033de18
编写于
3月 12, 2023
作者:
A
AUTOMATIC
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
revert webui.sh from #8492
上级
27eedb69
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
14 deletion
+14
-14
webui.sh
webui.sh
+14
-14
未找到文件。
webui.sh
浏览文件 @
6033de18
...
@@ -6,18 +6,19 @@
...
@@ -6,18 +6,19 @@
# If run from macOS, load defaults from webui-macos-env.sh
# If run from macOS, load defaults from webui-macos-env.sh
if
[[
"
$OSTYPE
"
==
"darwin"
*
]]
;
then
if
[[
"
$OSTYPE
"
==
"darwin"
*
]]
;
then
if
[[
-f
"
$(
dirname
$0
)
/webui-macos-env.sh"
]]
if
[[
-f
webui-macos-env.sh
]]
then
then
source
"
$(
dirname
$0
)
/webui-macos-env.sh"
source
./webui-macos-env.sh
fi
fi
fi
fi
# Read variables from webui-user.sh
# Read variables from webui-user.sh
# shellcheck source=/dev/null
# shellcheck source=/dev/null
if
[[
-f
"
$(
dirname
$0
)
/webui-user.sh"
]]
if
[[
-f
webui-user.sh
]]
then
then
source
"
$(
dirname
$0
)
/webui-user.sh"
source
./webui-user.sh
fi
fi
# Set defaults
# Set defaults
# Install directory without trailing slash
# Install directory without trailing slash
if
[[
-z
"
${
install_dir
}
"
]]
if
[[
-z
"
${
install_dir
}
"
]]
...
@@ -46,12 +47,12 @@ fi
...
@@ -46,12 +47,12 @@ fi
# python3 venv without trailing slash (defaults to ${install_dir}/${clone_dir}/venv)
# python3 venv without trailing slash (defaults to ${install_dir}/${clone_dir}/venv)
if
[[
-z
"
${
venv_dir
}
"
]]
if
[[
-z
"
${
venv_dir
}
"
]]
then
then
venv_dir
=
"
${
install_dir
}
/
${
clone_dir
}
/
venv"
venv_dir
=
"venv"
fi
fi
if
[[
-z
"
${
LAUNCH_SCRIPT
}
"
]]
if
[[
-z
"
${
LAUNCH_SCRIPT
}
"
]]
then
then
LAUNCH_SCRIPT
=
"
${
install_dir
}
/
${
clone_dir
}
/
launch.py"
LAUNCH_SCRIPT
=
"launch.py"
fi
fi
# this script cannot be run as root by default
# this script cannot be run as root by default
...
@@ -139,23 +140,22 @@ then
...
@@ -139,23 +140,22 @@ then
exit
1
exit
1
fi
fi
if
[[
!
-d
"
${
install_dir
}
/
${
clone_dir
}
"
]]
cd
"
${
install_dir
}
"
/
||
{
printf
"
\e
[1m
\e
[31mERROR: Can't cd to %s/, aborting...
\e
[0m"
"
${
install_dir
}
"
;
exit
1
;
}
if
[[
-d
"
${
clone_dir
}
"
]]
then
then
cd
"
${
clone_dir
}
"
/
||
{
printf
"
\e
[1m
\e
[31mERROR: Can't cd to %s/%s/, aborting...
\e
[0m"
"
${
install_dir
}
"
"
${
clone_dir
}
"
;
exit
1
;
}
else
printf
"
\n
%s
\n
"
"
${
delimiter
}
"
printf
"
\n
%s
\n
"
"
${
delimiter
}
"
printf
"Clone stable-diffusion-webui"
printf
"Clone stable-diffusion-webui"
printf
"
\n
%s
\n
"
"
${
delimiter
}
"
printf
"
\n
%s
\n
"
"
${
delimiter
}
"
mkdir
-p
"
${
install
_dir
}
"
"
${
GIT
}
"
clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
"
${
clone
_dir
}
"
"
${
GIT
}
"
clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
"
${
install_dir
}
/
${
clone_dir
}
"
cd
"
${
clone_dir
}
"
/
||
{
printf
"
\e
[1m
\e
[31mERROR: Can't cd to %s/%s/, aborting...
\e
[0m"
"
${
install_dir
}
"
"
${
clone_dir
}
"
;
exit
1
;
}
fi
fi
printf
"
\n
%s
\n
"
"
${
delimiter
}
"
printf
"
\n
%s
\n
"
"
${
delimiter
}
"
printf
"Create and activate python venv"
printf
"Create and activate python venv"
printf
"
\n
%s
\n
"
"
${
delimiter
}
"
printf
"
\n
%s
\n
"
"
${
delimiter
}
"
# Make venv_dir absolute
cd
"
${
install_dir
}
"
/
"
${
clone_dir
}
"
/
||
{
printf
"
\e
[1m
\e
[31mERROR: Can't cd to %s/%s/, aborting...
\e
[0m"
"
${
install_dir
}
"
"
${
clone_dir
}
"
;
exit
1
;
}
if
[[
"
${
venv_dir
}
"
!=
/
*
]]
then
venv_dir
=
"
${
install_dir
}
/
${
clone_dir
}
/
${
venv_dir
}
"
fi
if
[[
!
-d
"
${
venv_dir
}
"
]]
if
[[
!
-d
"
${
venv_dir
}
"
]]
then
then
"
${
python_cmd
}
"
-m
venv
"
${
venv_dir
}
"
"
${
python_cmd
}
"
-m
venv
"
${
venv_dir
}
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录