From fa2a929796d57209e7cf624f3a04a64eda0e914c Mon Sep 17 00:00:00 2001 From: JeLuF Date: Tue, 18 Jul 2023 00:41:47 +0200 Subject: [PATCH] Help texts for common errors - Using an Embedding on 'Low' - Using LORAs and models with mismatching versions --- ui/media/js/main.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 20359640..494e6d4b 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -904,6 +904,22 @@ function onTaskCompleted(task, reqBody, instance, outputContainer, stepUpdate) { Windows or Linux.
3. Try restarting your computer.
` + } else if (msg.includes("RuntimeError: output with shape [320, 320] doesn't match the broadcast shape")) { + msg += `

+ Reason: You tried to use a LORA that was trained for a different Stable Diffusion model version! +

+ Suggestions: +
+ Try to use a different model or a different LORA.` + } else if (msg.includes("Tensor on device cuda:0 is not on the expected device meta")) { + msg += `

+ Reason: Due to some software issues, embeddings currently don't work with the "Low" memory profile. +

+ Suggestions: +
+ 1. Set the memory profile to "Balanced"
+ 2. Remove the embeddings from the prompt and the negative prompt
+ 3. Check whether the plugins you're using change the memory profile automatically.` } } else { msg = `Unexpected Read Error:
StepUpdate: ${JSON.stringify(stepUpdate, undefined, 4)}
`