Skip to content

Commit 8f54395

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stable-diffusion.cpp

Lines changed: 3 additions & 3 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);

0 commit comments

Comments
 (0)