Skip to content

Commit f6be53b

Browse files
committed
set default slg_scale arg to 0
1 parent 0661226 commit f6be53b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stable-diffusion.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ class StableDiffusionGGML {
780780
int start_merge_step,
781781
SDCondition id_cond,
782782
std::vector<int> skip_layers = {},
783-
float slg_scale = 2.5,
783+
float slg_scale = 0,
784784
float skip_layer_start = 0.01,
785785
float skip_layer_end = 0.2) {
786786
size_t steps = sigmas.size() - 1;
@@ -1162,7 +1162,7 @@ sd_image_t* generate_image(sd_ctx_t* sd_ctx,
11621162
bool normalize_input,
11631163
std::string input_id_images_path,
11641164
std::vector<int> skip_layers = {},
1165-
float slg_scale = 2.5,
1165+
float slg_scale = 0,
11661166
float skip_layer_start = 0.01,
11671167
float skip_layer_end = 0.2) {
11681168
if (seed < 0) {
@@ -1454,7 +1454,7 @@ sd_image_t* txt2img(sd_ctx_t* sd_ctx,
14541454
bool normalize_input,
14551455
const char* input_id_images_path_c_str,
14561456
std::vector<int> skip_layers = {},
1457-
float slg_scale = 2.5,
1457+
float slg_scale = 0,
14581458
float skip_layer_start = 0.01,
14591459
float skip_layer_end = 0.2) {
14601460
LOG_DEBUG("txt2img %dx%d", width, height);
@@ -1557,7 +1557,7 @@ sd_image_t* img2img(sd_ctx_t* sd_ctx,
15571557
bool normalize_input,
15581558
const char* input_id_images_path_c_str,
15591559
std::vector<int> skip_layers = {},
1560-
float slg_scale = 2.5,
1560+
float slg_scale = 0,
15611561
float skip_layer_start = 0.01,
15621562
float skip_layer_end = 0.2) {
15631563
LOG_DEBUG("img2img %dx%d", width, height);

0 commit comments

Comments
 (0)