Skip to content

Commit

Permalink
warn if version doesn't support slg
Browse files Browse the repository at this point in the history
  • Loading branch information
stduhpf committed Nov 5, 2024
1 parent 4fe0e82 commit bcc8880
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion stable-diffusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,12 @@ class StableDiffusionGGML {
out_uncond = ggml_dup_tensor(tmp_ctx, x);
}
if (has_skiplayer) {
out_skip = ggml_dup_tensor(tmp_ctx, x);
if (version == VERSION_SD3_2B || version == VERSION_SD3_5_2B || version == VERSION_SD3_5_8B || version == VERSION_FLUX_DEV || version == VERSION_FLUX_SCHNELL) {
out_skip = ggml_dup_tensor(tmp_ctx, x);
} else {
has_skiplayer = false;
LOG_WARN("SLG is incompatible with %s models", model_version_to_str[version]);
}
}
struct ggml_tensor* denoised = ggml_dup_tensor(tmp_ctx, x);

Expand Down

0 comments on commit bcc8880

Please sign in to comment.