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 f6be53b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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 Expand Up @@ -1557,7 +1557,7 @@ sd_image_t* img2img(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("img2img %dx%d", width, height);
Expand Down

0 comments on commit f6be53b

Please sign in to comment.