From 2baad73bb98d0f2abb1811000504bec15f225c5a Mon Sep 17 00:00:00 2001 From: JeLuF Date: Thu, 17 Aug 2023 07:38:18 +0200 Subject: [PATCH] Error messages for SDXL yaml files (#1504) * Error messages for SDXL embeddings and SDXL yaml files * Embeddings are supported now with SDXL --- ui/media/js/main.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index c29850c2..fad67ab4 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -1039,15 +1039,18 @@ function onTaskCompleted(task, reqBody, instance, outputContainer, stepUpdate) { 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")) { + } else if (msg.includes("'ModuleList' object has no attribute '1'")) { msg += `

- Reason: Due to some software issues, embeddings currently don't work with the "Low" memory profile. + Reason: SDXL models need a yaml config file.

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.` +
    +
  1. Download the config file
  2. +
  3. Save it in the same directory as the SDXL model file
  4. +
  5. Rename the config file so that it matches the filename of the model, with the extension of the model file replaced by yaml. + For example, if the model file is called FantasySDXL_v2.safetensors, the config file must be called FantasySDXL_v2.yaml. +
` } } else { msg = `Unexpected Read Error:
StepUpdate: ${JSON.stringify(stepUpdate, undefined, 4)}
`