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
56f63cd4
Unverified
Commit
56f63cd4
authored
Jan 23, 2023
by
AUTOMATIC1111
Committed by
GitHub
Jan 23, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5939 from petalas/petalas/torch-upgrade
upgrading torch, torchvision, xformers (windows), to use cu117
parents
59146621
c091cf1b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
launch.py
launch.py
+2
-4
No files found.
launch.py
View file @
56f63cd4
...
...
@@ -179,7 +179,7 @@ def run_extensions_installers(settings_file):
def
prepare_environment
():
global
skip_install
torch_command
=
os
.
environ
.
get
(
'TORCH_COMMAND'
,
"pip install torch==1.1
2.1+cu113 torchvision==0.13.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113
"
)
torch_command
=
os
.
environ
.
get
(
'TORCH_COMMAND'
,
"pip install torch==1.1
3.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'
,
""
)
...
...
@@ -187,8 +187,6 @@ def prepare_environment():
clip_package
=
os
.
environ
.
get
(
'CLIP_PACKAGE'
,
"git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1"
)
openclip_package
=
os
.
environ
.
get
(
'OPENCLIP_PACKAGE'
,
"git+https://github.com/mlfoundations/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b"
)
xformers_windows_package
=
os
.
environ
.
get
(
'XFORMERS_WINDOWS_PACKAGE'
,
'https://github.com/C43H66N12O12S2/stable-diffusion-webui/releases/download/f/xformers-0.0.14.dev0-cp310-cp310-win_amd64.whl'
)
stable_diffusion_repo
=
os
.
environ
.
get
(
'STABLE_DIFFUSION_REPO'
,
"https://github.com/Stability-AI/stablediffusion.git"
)
taming_transformers_repo
=
os
.
environ
.
get
(
'TAMING_TRANSFORMERS_REPO'
,
"https://github.com/CompVis/taming-transformers.git"
)
k_diffusion_repo
=
os
.
environ
.
get
(
'K_DIFFUSION_REPO'
,
'https://github.com/crowsonkb/k-diffusion.git'
)
...
...
@@ -239,7 +237,7 @@ def prepare_environment():
if
(
not
is_installed
(
"xformers"
)
or
reinstall_xformers
)
and
xformers
:
if
platform
.
system
()
==
"Windows"
:
if
platform
.
python_version
()
.
startswith
(
"3.10"
):
run_pip
(
f
"install -U -I --no-deps
{xformers_windows_package}
"
,
"xformers"
)
run_pip
(
f
"install -U -I --no-deps
xformers==0.0.16rc425
"
,
"xformers"
)
else
:
print
(
"Installation of xformers is not supported in this version of Python."
)
print
(
"You can also check this and build manually: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Xformers#building-xformers-on-windows-by-duckness"
)
...
...
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