Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/go/stablediffusion-ggml/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 1 addition & 3 deletions backend/go/stablediffusion-ggml/gosd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const char* schedulers[] = {
"smoothstep",
"kl_optimal",
"lcm",
"bong_tangent",
};

static_assert(std::size(schedulers) == SCHEDULER_COUNT, "schedulers mismatch");
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down
Loading