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
9eb49b04
Commit
9eb49b04
authored
Apr 29, 2023
by
AUTOMATIC1111
Committed by
GitHub
Apr 29, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9191 from vladmandic/torch
update torch base environment
parents
e55cb920
f54cd3f1
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
12 deletions
+15
-12
.gitignore
.gitignore
+1
-1
environment-wsl2.yaml
environment-wsl2.yaml
+5
-5
launch.py
launch.py
+3
-3
requirements.txt
requirements.txt
+1
-0
requirements_versions.txt
requirements_versions.txt
+2
-2
webui-macos-env.sh
webui-macos-env.sh
+1
-1
webui.py
webui.py
+2
-0
No files found.
.gitignore
View file @
9eb49b04
...
@@ -32,4 +32,4 @@ notification.mp3
...
@@ -32,4 +32,4 @@ notification.mp3
/extensions
/extensions
/test/stdout.txt
/test/stdout.txt
/test/stderr.txt
/test/stderr.txt
/cache.json
/cache.json
*
environment-wsl2.yaml
View file @
9eb49b04
...
@@ -4,8 +4,8 @@ channels:
...
@@ -4,8 +4,8 @@ channels:
-
defaults
-
defaults
dependencies
:
dependencies
:
-
python=3.10
-
python=3.10
-
pip=22.2.2
-
pip=23.0
-
cudatoolkit=11.3
-
cudatoolkit=11.8
-
pytorch=1.12.1
-
pytorch=2.0
-
torchvision=0.13.1
-
torchvision=0.15
-
numpy=1.23.1
-
numpy=1.23
\ No newline at end of file
launch.py
View file @
9eb49b04
...
@@ -225,10 +225,10 @@ def run_extensions_installers(settings_file):
...
@@ -225,10 +225,10 @@ def run_extensions_installers(settings_file):
def
prepare_environment
():
def
prepare_environment
():
global
skip_install
global
skip_install
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
"
)
torch_command
=
os
.
environ
.
get
(
'TORCH_COMMAND'
,
"pip install torch
torchvision --index-url https://download.pytorch.org/whl/cu118
"
)
requirements_file
=
os
.
environ
.
get
(
'REQS_FILE'
,
"requirements_versions.txt"
)
requirements_file
=
os
.
environ
.
get
(
'REQS_FILE'
,
"requirements_versions.txt"
)
xformers_package
=
os
.
environ
.
get
(
'XFORMERS_PACKAGE'
,
'xformers==0.0.1
6rc425
'
)
xformers_package
=
os
.
environ
.
get
(
'XFORMERS_PACKAGE'
,
'xformers==0.0.1
7
'
)
gfpgan_package
=
os
.
environ
.
get
(
'GFPGAN_PACKAGE'
,
"git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379"
)
gfpgan_package
=
os
.
environ
.
get
(
'GFPGAN_PACKAGE'
,
"git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379"
)
clip_package
=
os
.
environ
.
get
(
'CLIP_PACKAGE'
,
"git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1"
)
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"
)
openclip_package
=
os
.
environ
.
get
(
'OPENCLIP_PACKAGE'
,
"git+https://github.com/mlfoundations/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b"
)
...
@@ -296,7 +296,7 @@ def prepare_environment():
...
@@ -296,7 +296,7 @@ def prepare_environment():
if
not
os
.
path
.
isfile
(
requirements_file
):
if
not
os
.
path
.
isfile
(
requirements_file
):
requirements_file
=
os
.
path
.
join
(
script_path
,
requirements_file
)
requirements_file
=
os
.
path
.
join
(
script_path
,
requirements_file
)
run_pip
(
f
"install -r
\"
{requirements_file}
\"
"
,
"requirements
for Web UI
"
)
run_pip
(
f
"install -r
\"
{requirements_file}
\"
"
,
"requirements"
)
run_extensions_installers
(
settings_file
=
args
.
ui_settings_file
)
run_extensions_installers
(
settings_file
=
args
.
ui_settings_file
)
...
...
requirements.txt
View file @
9eb49b04
astunparse
blendmodes
blendmodes
accelerate
accelerate
basicsr
basicsr
...
...
requirements_versions.txt
View file @
9eb49b04
blendmodes==2022
blendmodes==2022
transformers==4.25.1
transformers==4.25.1
accelerate==0.1
2
.0
accelerate==0.1
8
.0
basicsr==1.4.2
basicsr==1.4.2
gfpgan==1.3.8
gfpgan==1.3.8
gradio==3.27
gradio==3.27
numpy==1.23.
3
numpy==1.23.
5
Pillow==9.4.0
Pillow==9.4.0
realesrgan==0.3.0
realesrgan==0.3.0
torch
torch
...
...
webui-macos-env.sh
View file @
9eb49b04
...
@@ -11,7 +11,7 @@ fi
...
@@ -11,7 +11,7 @@ fi
export
install_dir
=
"
$HOME
"
export
install_dir
=
"
$HOME
"
export
COMMANDLINE_ARGS
=
"--skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate"
export
COMMANDLINE_ARGS
=
"--skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate"
export
TORCH_COMMAND
=
"pip install torch
==1.12.1 torchvision==0.13.1
"
export
TORCH_COMMAND
=
"pip install torch
torchvision --extra-index-url https://download.pytorch.org/whl/cu118
"
export
K_DIFFUSION_REPO
=
"https://github.com/brkirch/k-diffusion.git"
export
K_DIFFUSION_REPO
=
"https://github.com/brkirch/k-diffusion.git"
export
K_DIFFUSION_COMMIT_HASH
=
"51c9778f269cedb55a4d88c79c0246d35bdadb71"
export
K_DIFFUSION_COMMIT_HASH
=
"51c9778f269cedb55a4d88c79c0246d35bdadb71"
export
PYTORCH_ENABLE_MPS_FALLBACK
=
1
export
PYTORCH_ENABLE_MPS_FALLBACK
=
1
...
...
webui.py
View file @
9eb49b04
...
@@ -20,6 +20,8 @@ startup_timer = timer.Timer()
...
@@ -20,6 +20,8 @@ startup_timer = timer.Timer()
import
torch
import
torch
import
pytorch_lightning
# pytorch_lightning should be imported after torch, but it re-enables warnings on import so import once to disable them
import
pytorch_lightning
# pytorch_lightning should be imported after torch, but it re-enables warnings on import so import once to disable them
warnings
.
filterwarnings
(
action
=
"ignore"
,
category
=
DeprecationWarning
,
module
=
"pytorch_lightning"
)
warnings
.
filterwarnings
(
action
=
"ignore"
,
category
=
DeprecationWarning
,
module
=
"pytorch_lightning"
)
warnings
.
filterwarnings
(
action
=
"ignore"
,
category
=
UserWarning
,
module
=
"torchvision"
)
startup_timer
.
record
(
"import torch"
)
startup_timer
.
record
(
"import torch"
)
import
gradio
import
gradio
...
...
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