Skip to content

Commit dffd2f3

Browse files
author
localai-bot
committed
feat: set flow_shift as sample param to match upstream stable-diffusion.cpp
According to owner feedback, flow_shift became a sample param (sd_sample_params_t) instead of a context param (sd_ctx_params_t). Added the flow_shift assignment to sample_params to match the upstream library at commit d950627.
1 parent cd5c792 commit dffd2f3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

backend/go/stablediffusion-ggml/gosd.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,7 @@ int gen_image(sd_img_gen_params_t *p, int steps, char *dst, float cfg_scale, cha
872872
p->sample_params.sample_method = sample_method;
873873
p->sample_params.sample_steps = steps;
874874
p->sample_params.scheduler = scheduler;
875+
p->sample_params.flow_shift = INFINITY;
875876

876877
int width = p->width;
877878
int height = p->height;

0 commit comments

Comments
 (0)