Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
7745db6f
Commit
7745db6f
authored
Dec 16, 2023
by
AUTOMATIC1111
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
torch 2.1.2
parent
e9c6325f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
modules/errors.py
modules/errors.py
+2
-2
modules/launch_utils.py
modules/launch_utils.py
+2
-2
No files found.
modules/errors.py
View file @
7745db6f
...
...
@@ -107,8 +107,8 @@ def check_versions():
import
torch
import
gradio
expected_torch_version
=
"2.1.
0
"
expected_xformers_version
=
"0.0.2
2.post7
"
expected_torch_version
=
"2.1.
2
"
expected_xformers_version
=
"0.0.2
3.post1
"
expected_gradio_version
=
"3.41.2"
if
version
.
parse
(
torch
.
__version__
)
<
version
.
parse
(
expected_torch_version
):
...
...
modules/launch_utils.py
View file @
7745db6f
...
...
@@ -315,7 +315,7 @@ def requirements_met(requirements_file):
def
prepare_environment
():
torch_index_url
=
os
.
environ
.
get
(
'TORCH_INDEX_URL'
,
"https://download.pytorch.org/whl/cu121"
)
torch_command
=
os
.
environ
.
get
(
'TORCH_COMMAND'
,
f
"pip install torch==2.1.
0 torchvision==0.16.0
--extra-index-url {torch_index_url}"
)
torch_command
=
os
.
environ
.
get
(
'TORCH_COMMAND'
,
f
"pip install torch==2.1.
2 torchvision==0.16.2
--extra-index-url {torch_index_url}"
)
if
args
.
use_ipex
:
if
platform
.
system
()
==
"Windows"
:
# The "Nuullll/intel-extension-for-pytorch" wheels were built from IPEX source for Intel Arc GPU: https://github.com/intel/intel-extension-for-pytorch/tree/xpu-main
...
...
@@ -338,7 +338,7 @@ def prepare_environment():
torch_command
=
os
.
environ
.
get
(
'TORCH_COMMAND'
,
f
"pip install torch==2.0.0a0 intel-extension-for-pytorch==2.0.110+gitba7f6c1 --extra-index-url {torch_index_url}"
)
requirements_file
=
os
.
environ
.
get
(
'REQS_FILE'
,
"requirements_versions.txt"
)
xformers_package
=
os
.
environ
.
get
(
'XFORMERS_PACKAGE'
,
'xformers==0.0.2
2.post7
'
)
xformers_package
=
os
.
environ
.
get
(
'XFORMERS_PACKAGE'
,
'xformers==0.0.2
3.post1
'
)
clip_package
=
os
.
environ
.
get
(
'CLIP_PACKAGE'
,
"https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip"
)
openclip_package
=
os
.
environ
.
get
(
'OPENCLIP_PACKAGE'
,
"https://github.com/mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip"
)
...
...
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