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
62961293
Unverified
Commit
62961293
authored
Jan 14, 2023
by
DaniAndTheWeb
Committed by
GitHub
Jan 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert detection code
parent
934cba0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
launch.py
launch.py
+1
-14
No files found.
launch.py
View file @
62961293
...
...
@@ -7,7 +7,6 @@ import shlex
import
platform
import
argparse
import
json
import
detection
dir_repos
=
"repositories"
dir_extensions
=
"extensions"
...
...
@@ -16,12 +15,6 @@ git = os.environ.get('GIT', "git")
index_url
=
os
.
environ
.
get
(
'INDEX_URL'
,
""
)
stored_commit_hash
=
None
# Get the GPU vendor and the operating system
gpu
=
detection
.
check_gpu
()
if
os
.
name
==
"posix"
:
os_name
=
platform
.
uname
()
.
system
else
:
os_name
=
os
.
name
def
commit_hash
():
global
stored_commit_hash
...
...
@@ -180,11 +173,7 @@ def run_extensions_installers(settings_file):
def
prepare_environment
():
if
gpu
==
"AMD"
and
os_name
!=
"nt"
:
torch_command
=
os
.
environ
.
get
(
'TORCH_COMMAND'
,
"pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/rocm5.2"
)
else
:
torch_command
=
os
.
environ
.
get
(
'TORCH_COMMAND'
,
"pip install torch==1.12.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.12.1+cu113 torchvision==0.13.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113"
)
requirements_file
=
os
.
environ
.
get
(
'REQS_FILE'
,
"requirements_versions.txt"
)
commandline_args
=
os
.
environ
.
get
(
'COMMANDLINE_ARGS'
,
""
)
...
...
@@ -306,8 +295,6 @@ def tests(test_dir):
def
start
():
print
(
f
"Operating System: {os_name}"
)
print
(
f
"GPU: {gpu}"
)
print
(
f
"Launching {'API server' if '--nowebui' in sys.argv else 'Web UI'} with arguments: {' '.join(sys.argv[1:])}"
)
import
webui
if
'--nowebui'
in
sys
.
argv
:
...
...
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