diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-08 12:23:49 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-08 12:23:49 +0000 |
commit | ab4ab4e595e89d1a9a39db70539d5944fdbe47fa (patch) | |
tree | 8b599241b3954d30f5d2d7ff8aea201620fda797 /modules/ui.py | |
parent | 505a10ad928eb11849828c88850ce3e5e3566fe4 (diff) | |
download | stable-diffusion-webui-gfx803-ab4ab4e595e89d1a9a39db70539d5944fdbe47fa.tar.gz stable-diffusion-webui-gfx803-ab4ab4e595e89d1a9a39db70539d5944fdbe47fa.tar.bz2 stable-diffusion-webui-gfx803-ab4ab4e595e89d1a9a39db70539d5944fdbe47fa.zip |
add version to infotext, footer and console output when starting
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/ui.py b/modules/ui.py index 16c46515..b2916e9c 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1923,7 +1923,7 @@ def versions_html(): python_version = ".".join([str(x) for x in sys.version_info[0:3]])
commit = launch.commit_hash()
- short_commit = commit[0:8]
+ tag = launch.git_tag()
if shared.xformers_available:
import xformers
@@ -1932,6 +1932,8 @@ def versions_html(): xformers_version = "N/A"
return f"""
+version: <a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/{commit}">{tag}</a>
+ •
python: <span title="{sys.version}">{python_version}</span>
•
torch: {getattr(torch, '__long_version__',torch.__version__)}
@@ -1940,7 +1942,5 @@ xformers: {xformers_version} •
gradio: {gr.__version__}
•
-commit: <a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/{commit}">{short_commit}</a>
- •
checkpoint: <a id="sd_checkpoint_hash">N/A</a>
"""
|