diff --git a/backend/go/stablediffusion-ggml/Makefile b/backend/go/stablediffusion-ggml/Makefile index c7cb92256..92ef9eae0 100644 --- a/backend/go/stablediffusion-ggml/Makefile +++ b/backend/go/stablediffusion-ggml/Makefile @@ -8,7 +8,7 @@ JOBS?=$(shell nproc --ignore=1) # stablediffusion.cpp (ggml) STABLEDIFFUSION_GGML_REPO?=https://github.com/leejet/stable-diffusion.cpp -STABLEDIFFUSION_GGML_VERSION?=1f9ee88e09c258053fa59d5e05e23dfb10fa0b13 +STABLEDIFFUSION_GGML_VERSION?=b9254dda0d10b91ee6f17fb7f4420097dd29824b CMAKE_ARGS+=-DGGML_MAX_NAME=128 diff --git a/backend/go/stablediffusion-ggml/cpp/gosd.cpp b/backend/go/stablediffusion-ggml/cpp/gosd.cpp index 3fa0f7063..607d3354c 100644 --- a/backend/go/stablediffusion-ggml/cpp/gosd.cpp +++ b/backend/go/stablediffusion-ggml/cpp/gosd.cpp @@ -386,6 +386,7 @@ int load_model(const char *model, char *model_path, char* options[], int threads const char *llm_vision_path = ""; const char *diffusion_model_path = stableDiffusionModel; const char *high_noise_diffusion_model_path = ""; + const char *uncond_diffusion_model_path = ""; const char *taesd_path = ""; const char *control_net_path = ""; const char *embedding_dir = ""; @@ -472,6 +473,7 @@ int load_model(const char *model, char *model_path, char* options[], int threads if (!strcmp(optname, "llm_vision_path")) llm_vision_path = strdup(optval); if (!strcmp(optname, "diffusion_model_path")) diffusion_model_path = strdup(optval); if (!strcmp(optname, "high_noise_diffusion_model_path")) high_noise_diffusion_model_path = strdup(optval); + if (!strcmp(optname, "uncond_diffusion_model_path")) uncond_diffusion_model_path = strdup(optval); if (!strcmp(optname, "taesd_path")) taesd_path = strdup(optval); if (!strcmp(optname, "control_net_path")) control_net_path = strdup(optval); if (!strcmp(optname, "embedding_dir")) { @@ -571,6 +573,7 @@ int load_model(const char *model, char *model_path, char* options[], int threads ctx_params.llm_vision_path = llm_vision_path; ctx_params.diffusion_model_path = diffusion_model_path; ctx_params.high_noise_diffusion_model_path = high_noise_diffusion_model_path; + ctx_params.uncond_diffusion_model_path = uncond_diffusion_model_path; ctx_params.vae_path = vae_path; ctx_params.audio_vae_path = audio_vae_path; ctx_params.embeddings_connectors_path = embeddings_connectors_path;