aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-19 06:02:22 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-09-19 06:02:22 +0000
commit8a32a71ca3223cf7b0911fe55db2c6dece2bacca (patch)
tree70936f82e99634619b998bcdf238989eec8a6475 /modules/ui.py
parent7539f04e28595f8ce57e0493d1cd72bb6b98a027 (diff)
parent5a759687a245cea5fa1fa9fd34868810df0fcb8f (diff)
downloadstable-diffusion-webui-gfx803-8a32a71ca3223cf7b0911fe55db2c6dece2bacca.tar.gz
stable-diffusion-webui-gfx803-8a32a71ca3223cf7b0911fe55db2c6dece2bacca.tar.bz2
stable-diffusion-webui-gfx803-8a32a71ca3223cf7b0911fe55db2c6dece2bacca.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 29ae00eb..01f07954 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -151,11 +151,8 @@ def wrap_gradio_call(func):
sys_peak = mem_stats['system_peak']
sys_total = mem_stats['total']
sys_pct = round(sys_peak/max(sys_total, 1) * 100, 2)
- vram_tooltip = "Torch active: Peak amount of VRAM used by Torch during generation, excluding cached data.&#013;" \
- "Torch reserved: Peak amount of VRAM allocated by Torch, including all active and cached data.&#013;" \
- "Sys VRAM: Peak amount of VRAM allocation across all applications / total GPU VRAM (peak utilization%)."
- vram_html = f"<p class='vram' title='{vram_tooltip}'>Torch active/reserved: {active_peak}/{reserved_peak} MiB, <wbr>Sys VRAM: {sys_peak}/{sys_total} MiB ({sys_pct}%)</p>"
+ vram_html = f"<p class='vram'>Torch active/reserved: {active_peak}/{reserved_peak} MiB, <wbr>Sys VRAM: {sys_peak}/{sys_total} MiB ({sys_pct}%)</p>"
else:
vram_html = ''