From acd3c8896f9ca1f8ebed614b5d180da4d266e9e3 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Sat, 22 Feb 2025 21:54:26 +0100 Subject: [PATCH] chore(stable-diffusion-ggml): update, adapt upstream changes Signed-off-by: Ettore Di Giacinto --- Makefile | 2 +- backend/go/image/stablediffusion-ggml/gosd.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e3621687..dd804896 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ BARKCPP_VERSION?=v1.0.0 # stablediffusion.cpp (ggml) STABLEDIFFUSION_GGML_REPO?=https://github.com/leejet/stable-diffusion.cpp -STABLEDIFFUSION_GGML_VERSION?=d46ed5e184b97c2018dc2e8105925bdb8775e02c +STABLEDIFFUSION_GGML_VERSION?=19d876ee300a055629926ff836489901f734f2b7 ONNX_VERSION?=1.20.0 ONNX_ARCH?=x64 diff --git a/backend/go/image/stablediffusion-ggml/gosd.cpp b/backend/go/image/stablediffusion-ggml/gosd.cpp index 8653aa1e..4c7c161a 100644 --- a/backend/go/image/stablediffusion-ggml/gosd.cpp +++ b/backend/go/image/stablediffusion-ggml/gosd.cpp @@ -35,6 +35,8 @@ const char* sample_method_str[] = { "ipndm", "ipndm_v", "lcm", + "ddim_trailing", + "tcd", }; // Names of the sigma schedule overrides, same order as sample_schedule in stable-diffusion.h @@ -173,6 +175,7 @@ int gen_image(char *text, char *negativeText, int width, int height, int steps, -1, //clip_skip cfg_scale, // sfg_scale 3.5f, + 0, // eta width, height, sample_method,