aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/hints.js
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 /javascript/hints.js
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 'javascript/hints.js')
-rw-r--r--javascript/hints.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/javascript/hints.js b/javascript/hints.js
index 6d5ffc01..20a71dbd 100644
--- a/javascript/hints.js
+++ b/javascript/hints.js
@@ -70,17 +70,28 @@ titles = {
"Create style": "Save current prompts as a style. If you add the token {prompt} to the text, the style use that as placeholder for your prompt when you use the style in the future.",
"Checkpoint name": "Loads weights from checkpoint before making images. You can either use hash or a part of filename (as seen in settings) for checkpoint name. Recommended to use with Y axis for less switching.",
+
+ "vram": "Torch active: Peak amount of VRAM used by Torch during generation, excluding cached data.\nTorch reserved: Peak amount of VRAM allocated by Torch, including all active and cached data.\nSys VRAM: Peak amount of VRAM allocation across all applications / total GPU VRAM (peak utilization%).",
}
onUiUpdate(function(){
- gradioApp().querySelectorAll('span, button, select').forEach(function(span){
+ gradioApp().querySelectorAll('span, button, select, p').forEach(function(span){
tooltip = titles[span.textContent];
if(!tooltip){
tooltip = titles[span.value];
}
+ if(!tooltip){
+ for (const c of span.classList) {
+ if (c in titles) {
+ tooltip = titles[c];
+ break;
+ }
+ }
+ }
+
if(tooltip){
span.title = tooltip;
}