Skip to content

Commit

Permalink
set default slg_scale arg to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
stduhpf committed Nov 23, 2024
1 parent 0661226 commit 8f54395
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stable-diffusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ class StableDiffusionGGML {
int start_merge_step,
SDCondition id_cond,
std::vector<int> skip_layers = {},
float slg_scale = 2.5,
float slg_scale = 0,
float skip_layer_start = 0.01,
float skip_layer_end = 0.2) {
size_t steps = sigmas.size() - 1;
Expand Down Expand Up @@ -1162,7 +1162,7 @@ sd_image_t* generate_image(sd_ctx_t* sd_ctx,
bool normalize_input,
std::string input_id_images_path,
std::vector<int> skip_layers = {},
float slg_scale = 2.5,
float slg_scale = 0,
float skip_layer_start = 0.01,
float skip_layer_end = 0.2) {
if (seed < 0) {
Expand Down Expand Up @@ -1454,7 +1454,7 @@ sd_image_t* txt2img(sd_ctx_t* sd_ctx,
bool normalize_input,
const char* input_id_images_path_c_str,
std::vector<int> skip_layers = {},
float slg_scale = 2.5,
float slg_scale = 0,
float skip_layer_start = 0.01,
float skip_layer_end = 0.2) {
LOG_DEBUG("txt2img %dx%d", width, height);
Expand Down

0 comments on commit 8f54395

Please sign in to comment.