Skip to content

Commit

Permalink
chore(stable-diffusion-ggml): update, adapt upstream changes
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
  • Loading branch information
mudler committed Feb 22, 2025
1 parent e9971b1 commit acd3c88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions backend/go/image/stablediffusion-ggml/gosd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit acd3c88

Please # to comment.