diff --git a/backend/go/stablediffusion-ggml/Makefile b/backend/go/stablediffusion-ggml/Makefile index e103d6d8de0a..f938e1107df3 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?=e411520407663e1ddf8ff2e5ed4ff3a116fbbc97 +STABLEDIFFUSION_GGML_VERSION?=d95062737e4bd72060595220c5545cce1b049af9 CMAKE_ARGS+=-DGGML_MAX_NAME=128 diff --git a/backend/go/stablediffusion-ggml/gosd.cpp b/backend/go/stablediffusion-ggml/gosd.cpp index 2d8429c4ae10..4168ffb9fe4d 100644 --- a/backend/go/stablediffusion-ggml/gosd.cpp +++ b/backend/go/stablediffusion-ggml/gosd.cpp @@ -57,6 +57,7 @@ const char* schedulers[] = { "smoothstep", "kl_optimal", "lcm", + "bong_tangent", }; static_assert(std::size(schedulers) == SCHEDULER_COUNT, "schedulers mismatch"); @@ -501,7 +502,6 @@ int load_model(const char *model, char *model_path, char* options[], int threads bool chroma_use_dit_mask = true; bool chroma_use_t5_mask = false; int chroma_t5_mask_pad = 1; - float flow_shift = INFINITY; fprintf(stderr, "parsing options: %p\n", options); @@ -591,7 +591,6 @@ int load_model(const char *model, char *model_path, char* options[], int threads if (!strcmp(optname, "n_threads")) n_threads = atoi(optval); if (!strcmp(optname, "chroma_t5_mask_pad")) chroma_t5_mask_pad = atoi(optval); - if (!strcmp(optname, "flow_shift")) flow_shift = atof(optval); if (!strcmp(optname, "rng_type")) { int found = -1; @@ -723,7 +722,6 @@ int load_model(const char *model, char *model_path, char* options[], int threads ctx_params.chroma_use_dit_mask = chroma_use_dit_mask; ctx_params.chroma_use_t5_mask = chroma_use_t5_mask; ctx_params.chroma_t5_mask_pad = chroma_t5_mask_pad; - ctx_params.flow_shift = flow_shift; sd_ctx_t* sd_ctx = new_sd_ctx(&ctx_params); if (sd_ctx == NULL) {