Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Overbill1683
Stable Diffusion Webui
提交
e0d923bd
S
Stable Diffusion Webui
项目概览
Overbill1683
/
Stable Diffusion Webui
8 个月 前同步成功
通知
1717
Star
78
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
分析
仓库
DevOps
项目成员
Pages
S
Stable Diffusion Webui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Pages
分析
分析
仓库分析
DevOps
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
提交
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
e0d923bd
编写于
6月 06, 2023
作者:
D
DGdev91
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Force python1 for Navi1 only, use python_cmd for python
上级
2788ce8c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
15 deletion
+8
-15
webui.sh
webui.sh
+8
-15
未找到文件。
webui.sh
浏览文件 @
e0d923bd
...
@@ -112,10 +112,10 @@ then
...
@@ -112,10 +112,10 @@ then
fi
fi
# Check prerequisites
# Check prerequisites
pyv
=
"
$(
python
-c
'import sys; print(".".join(map(str, sys.version_info[0:2])))'
)
"
pyv
=
"
$(
${
python_cmd
}
-c
'import sys; print(".".join(map(str, sys.version_info[0:2])))'
)
"
gpu_info
=
$(
lspci 2>/dev/null |
grep
-E
"VGA|Display"
)
gpu_info
=
$(
lspci 2>/dev/null |
grep
-E
"VGA|Display"
)
case
"
$gpu_info
"
in
case
"
$gpu_info
"
in
*
"Navi 1"
*
|
*
"Navi 2"
*
)
*
"Navi 1"
*
)
if
[[
$(
bc
<<<
"
$pyv
<= 3.10"
)
-eq
1
]]
if
[[
$(
bc
<<<
"
$pyv
<= 3.10"
)
-eq
1
]]
then
then
export
HSA_OVERRIDE_GFX_VERSION
=
10.3.0
export
HSA_OVERRIDE_GFX_VERSION
=
10.3.0
...
@@ -126,19 +126,12 @@ case "$gpu_info" in
...
@@ -126,19 +126,12 @@ case "$gpu_info" in
exit
1
exit
1
fi
fi
;;
;;
*
"Renoir"
*
)
*
"Navi 2"
*
)
export
HSA_OVERRIDE_GFX_VERSION
=
10.3.0
if
[[
$(
bc
<<<
"
$pyv
<= 3.10"
)
-eq
1
]]
;;
then
*
"Renoir"
*
)
export
HSA_OVERRIDE_GFX_VERSION
=
9.0.0
export
HSA_OVERRIDE_GFX_VERSION
=
9.0.0
printf
"
\n
%s
\n
"
"
${
delimiter
}
"
# Renoir users will still use torch 1.13 because 2.0 does not seem to work.
printf
"Experimental support for Renoir: make sure to have at least 4GB of VRAM and 10GB of RAM or enable cpu mode: --use-cpu all --no-half"
export
TORCH_COMMAND
=
"pip install torch==1.13.1+rocm5.2 torchvision==0.14.1+rocm5.2 --index-url https://download.pytorch.org/whl/rocm5.2"
printf
"
\n
%s
\n
"
"
${
delimiter
}
"
printf
"
\n
%s
\n
"
"
${
delimiter
}
"
printf
"Experimental support for Renoir: make sure to have at least 4GB of VRAM and 10GB of RAM or enable cpu mode: --use-cpu all --no-half"
printf
"
\n
%s
\n
"
"
${
delimiter
}
"
else
printf
"
\e
[1m
\e
[31mERROR: Renoir GPUs must be using at max python 3.10, aborting...
\e
[0m"
exit
1
fi
;;
;;
*
)
*
)
;;
;;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录