Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
ee9fdf7f
Commit
ee9fdf7f
authored
Jan 30, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --skip-version-check to disable messages asking users to upgrade torch.
parent
aa4688eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
shared.py
modules/shared.py
+2
-0
webui.py
webui.py
+9
-1
No files found.
modules/shared.py
View file @
ee9fdf7f
...
...
@@ -105,6 +105,8 @@ parser.add_argument("--tls-keyfile", type=str, help="Partially enables TLS, requ
parser
.
add_argument
(
"--tls-certfile"
,
type
=
str
,
help
=
"Partially enables TLS, requires --tls-keyfile to fully function"
,
default
=
None
)
parser
.
add_argument
(
"--server-name"
,
type
=
str
,
help
=
"Sets hostname of server"
,
default
=
None
)
parser
.
add_argument
(
"--gradio-queue"
,
action
=
'store_true'
,
help
=
"Uses gradio queue; experimental option; breaks restart UI button"
)
parser
.
add_argument
(
"--skip-version-check"
,
action
=
'store_true'
,
help
=
"Do not check versions of torch and xformers"
)
script_loading
.
preload_extensions
(
extensions
.
extensions_dir
,
parser
)
...
...
webui.py
View file @
ee9fdf7f
...
...
@@ -52,6 +52,9 @@ else:
def
check_versions
():
if
shared
.
cmd_opts
.
skip_version_check
:
return
expected_torch_version
=
"1.13.1"
if
version
.
parse
(
torch
.
__version__
)
<
version
.
parse
(
expected_torch_version
):
...
...
@@ -59,7 +62,10 @@ def check_versions():
You are running torch {torch.__version__}.
The program is tested to work with torch {expected_torch_version}.
To reinstall the desired version, run with commandline flag --reinstall-torch.
Beware that this will cause a lot of large files to be downloaded.
Beware that this will cause a lot of large files to be downloaded, as well as
there are reports of issues with training tab on the latest version.
Use --skip-version-check commandline argument to disable this check.
"""
.
strip
())
expected_xformers_version
=
"0.0.16rc425"
...
...
@@ -71,6 +77,8 @@ Beware that this will cause a lot of large files to be downloaded.
You are running xformers {xformers.__version__}.
The program is tested to work with xformers {expected_xformers_version}.
To reinstall the desired version, run with commandline flag --reinstall-xformers.
Use --skip-version-check commandline argument to disable this check.
"""
.
strip
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment