fix: resolve issue with pmid (#957)

This commit is contained in:
leejet 2025-11-09 22:47:53 +08:00 committed by GitHub
parent d2d3944f50
commit ee89afc878
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2200,7 +2200,7 @@ sd_image_t* generate_image_internal(sd_ctx_t* sd_ctx,
} }
ggml_ext_tensor_iter(init_img, [&](ggml_tensor* init_img, int64_t i0, int64_t i1, int64_t i2, int64_t i3) { ggml_ext_tensor_iter(init_img, [&](ggml_tensor* init_img, int64_t i0, int64_t i1, int64_t i2, int64_t i3) {
float value = sd_image_get_f32(processed_id_images[i3], i0, i1, i2); float value = sd_image_get_f32(processed_id_images[i3], i0, i1, i2, false);
ggml_ext_tensor_set_f32(init_img, value, i0, i1, i2, i3); ggml_ext_tensor_set_f32(init_img, value, i0, i1, i2, i3);
}); });