Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
S
Stable Diffusion Webui
管理
动态
成员
代码
仓库
分支
提交
标签
仓库图
比较修订版本
部署
模型注册表
分析
模型实验
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
Hunter0726
Stable Diffusion Webui
提交
48a15821
提交
48a15821
编辑于
2 years ago
作者:
AUTOMATIC
浏览文件
操作
下载
补丁
差异文件
remove the pip install stuff because it does not work as i hoped it would
上级
bef19318
No related branches found
分支 包含提交
No related tags found
标签 包含提交
无相关合并请求
变更
3
隐藏空白变更内容
行内
左右并排
显示
3 个更改的文件
launch.py
+0
-5
0 个添加, 5 个删除
launch.py
requirements_versions.txt
+0
-1
0 个添加, 1 个删除
requirements_versions.txt
webui.bat
+11
-2
11 个添加, 2 个删除
webui.bat
有
11 个添加
和
8 个删除
launch.py
+
0
−
5
浏览文件 @
48a15821
...
...
@@ -188,8 +188,6 @@ def run_extensions_installers(settings_file):
def
prepare_environment
():
global
skip_install
pip_installer_location
=
os
.
environ
.
get
(
'
PIP_INSTALLER_LOCATION
'
,
None
)
torch_command
=
os
.
environ
.
get
(
'
TORCH_COMMAND
'
,
"
pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117
"
)
requirements_file
=
os
.
environ
.
get
(
'
REQS_FILE
'
,
"
requirements_versions.txt
"
)
commandline_args
=
os
.
environ
.
get
(
'
COMMANDLINE_ARGS
'
,
""
)
...
...
@@ -231,9 +229,6 @@ def prepare_environment():
print
(
f
"
Python
{
sys
.
version
}
"
)
print
(
f
"
Commit hash:
{
commit
}
"
)
if
pip_installer_location
is
not
None
and
not
is_installed
(
"
pip
"
):
run
(
f
'"
{
python
}
"
"
{
pip_installer_location
}
"'
,
"
Installing pip
"
,
"
Couldn
'
t install pip
"
)
if
reinstall_torch
or
not
is_installed
(
"
torch
"
)
or
not
is_installed
(
"
torchvision
"
):
run
(
f
'"
{
python
}
"
-m
{
torch_command
}
'
,
"
Installing torch and torchvision
"
,
"
Couldn
'
t install torch
"
,
live
=
True
)
...
...
此差异已折叠。
点击以展开。
requirements_versions.txt
+
0
−
1
浏览文件 @
48a15821
...
...
@@ -4,7 +4,6 @@ accelerate==0.12.0
basicsr==1.4.2
gfpgan==1.3.8
gradio==3.16.2
fastapi==0.82.0
numpy==1.23.3
Pillow==9.4.0
realesrgan==0.3.0
...
...
此差异已折叠。
点击以展开。
webui.bat
+
11
−
2
浏览文件 @
48a15821
...
...
@@ -9,10 +9,19 @@ set ERROR_REPORTING=FALSE
mkdir
tmp
2
>
NUL
%PYTHON%
-c
""
>
tmp
/stdout
.txt
2
>
tmp
/stderr
.txt
if
%ERRORLEVEL%
==
0
goto
:
start
_venv
if
%ERRORLEVEL%
==
0
goto
:
check
_pip
echo
Couldn
't launch python
goto :show_stdout_stderr
:check_pip
%PYTHON%
-mpip --help >tmp/stdout.txt 2>tmp/stderr.txt
if
%ERRORLEVEL%
== 0 goto :start_venv
if "
%PIP_INSTALLER_LOCATION%
" == "" goto :show_stdout_stderr
%PYTHON%
"
%PIP_INSTALLER_LOCATION%
" >tmp/stdout.txt 2>tmp/stderr.txt
if
%ERRORLEVEL%
== 0 goto :start_venv
echo Couldn'
t
install
pip
goto
:show
_stdout_stderr
:start
_venv
if
[
"
%VENV_DIR%
"
]
==
[
"-"
]
goto
:skip
_venv
if
[
"
%SKIP_VENV%
"
]
==
[
"1"
]
goto
:skip
_venv
...
...
@@ -46,7 +55,7 @@ pause
exit
/b
:accelerate
_launch
echo
"
Accelerating
"
echo
Accelerating
%ACCELERATE%
launch
--num
_cpu_threads_per_process
=
6
launch
.py
pause
exit
/b
...
...
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录