We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd9b0f1 commit 8577446Copy full SHA for 8577446
stable-diffusion.cpp
@@ -877,7 +877,7 @@ class StableDiffusionGGML {
877
negative_data = (float*)out_uncond->data;
878
}
879
880
- bool has_skiplayer = skip_layers.size() > 0;
+ bool has_skiplayer = skip_layers.size() > 0 && slg_scale != 0.0;
881
int stepCount = sigmas.size();
882
has_skiplayer = has_skiplayer && step > (int)(skip_layer_start * stepCount) && step < (int)(skip_layer_end * stepCount);
883
float* skip_layer_data = NULL;
0 commit comments