From 2ba7803b95b4a696d0a09056bcd9f04f58686744 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Fri, 20 Jun 2025 22:11:58 +0800 Subject: [PATCH] replace_instruct_placeholders is now default --- klite.embd | 24 ++++++++++++++++++------ koboldcpp.py | 2 +- otherarch/sdcpp/stable-diffusion.cpp | 9 ++++++++- 3 files changed, 27 insertions(+), 8 deletions(-) diff --git a/klite.embd b/klite.embd index f8f50c721..547bfcc00 100644 --- a/klite.embd +++ b/klite.embd @@ -3326,7 +3326,7 @@ Current version indicated by LITEVER below. img_gen_from_instruct: true, img_autogen_type: 0, //0 is off, 1 is on, 2 is smart img_allownsfw: true, - img_cfgscale: 7, + img_cfgscale: 6, img_allowhd: true, img_crop: false, img_newturn: false, @@ -9162,6 +9162,11 @@ Current version indicated by LITEVER below. final = final.includes("+")?("+"+final.split("+")[1]):final; return `https://char-archive.evulid.cc/api/archive/v1/${parts[0]}/image/character/${final}?definition=true`; } + if (parts.length == 2 || parts[0] == 'generic') { + let final = parts[1]; + final = final.includes("+")?(final.split("+")[1]):final; + return `https://char-archive.evulid.cc/api/archive/v1/${parts[0]}/image/character/${final}?definition=true`; + } if (parts.length !== 4 || parts[2] !== 'character') { //bad format, return original return userInput; @@ -13944,11 +13949,18 @@ Current version indicated by LITEVER below. function sanitize_css(input) { - input = input.replace(/<\s*\/?\s*\w+\s*[^>]*>/gi, ""); - input = input.replace(/]*>/gi, ""); //replace html tags + input = input.replace(/ 0; std::string taesd_path_fixed = taesd_path; is_loaded_chroma = false; + std::string id_embeddings_path = id_embeddings_path_original; #ifdef SD_USE_CUDA LOG_DEBUG("Using CUDA backend"); backend = ggml_backend_cuda_init(0); @@ -257,6 +258,12 @@ public: LOG_INFO("Version: %s ", model_version_to_str[version]); + if(id_embeddings_path!="" && version!=VERSION_SDXL) + { + printf("\n!!!!\nWARNING: PhotoMaker is only compatible with SDXL models. PhotoMaker will be disabled!\n!!!!\n"); + id_embeddings_path = ""; + } + if(use_tiny_autoencoder) { std::string to_search = "taesd.embd";