mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2025-12-12 13:28:37 +00:00
fix: resolve issue with pmid (#957)
This commit is contained in:
parent
d2d3944f50
commit
ee89afc878
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user