Skip to content

Commit 6c6faae

Browse files
committed
format code
1 parent f9eed21 commit 6c6faae

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
@@ -2593,7 +2593,7 @@ sd_image_t* generate_image(sd_ctx_t* sd_ctx, const sd_img_gen_params_t* sd_img_g
25932593
} else {
25942594
float m = ggml_ext_tensor_get_f32(mask_img, mx, my);
25952595
ggml_ext_tensor_set_f32(concat_latent, m, ix, iy, 0);
2596-
for (int k = 0; k < masked_latent->ne[2];k++) {
2596+
for (int k = 0; k < masked_latent->ne[2]; k++) {
25972597
float v = ggml_ext_tensor_get_f32(masked_latent, ix, iy, k);
25982598
ggml_ext_tensor_set_f32(concat_latent, v, ix, iy, k + mask_channels);
25992599
}

0 commit comments

Comments
 (0)