Skip to content

Commit a5cc934

Browse files
committed
1 parent 8c60a88 commit a5cc934

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

otherarch/sdcpp/stable-diffusion.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,7 +1807,9 @@ class StableDiffusionGGML {
18071807
} else {
18081808
latent = gaussian_latent_sample(work_ctx, vae_output);
18091809
}
1810-
process_latent_in(latent);
1810+
if (!use_tiny_autoencoder) {
1811+
process_latent_in(latent);
1812+
}
18111813
if (sd_version_is_qwen_image(version)) {
18121814
latent = ggml_reshape_4d(work_ctx, latent, latent->ne[0], latent->ne[1], latent->ne[3], 1);
18131815
}
@@ -2359,7 +2361,7 @@ sd_image_t* generate_image_internal(sd_ctx_t* sd_ctx,
23592361
}
23602362

23612363
ggml_ext_tensor_iter(init_img, [&](ggml_tensor* init_img, int64_t i0, int64_t i1, int64_t i2, int64_t i3) {
2362-
float value = sd_image_get_f32(processed_id_images[i3], i0, i1, i2);
2364+
float value = sd_image_get_f32(processed_id_images[i3], i0, i1, i2, false);
23632365
ggml_ext_tensor_set_f32(init_img, value, i0, i1, i2, i3);
23642366
});
23652367

0 commit comments

Comments
 (0)