Skip to content

Commit 29993be

Browse files
committed
avoid crash on cfg 0
1 parent af35858 commit 29993be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stable-diffusion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ class StableDiffusionGGML {
11681168
GGML_ASSERT(has_conditionned || has_unconditioned || has_img_uncond);
11691169

11701170
// denoise wrapper
1171-
struct ggml_tensor* out_cond = nullptr;
1171+
struct ggml_tensor* out_cond = x;
11721172
struct ggml_tensor* out_uncond = nullptr;
11731173
struct ggml_tensor* out_skip = nullptr;
11741174
struct ggml_tensor* out_img_cond = nullptr;

0 commit comments

Comments
 (0)