mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2025-12-12 13:28:37 +00:00
fix: check the PhotoMaker id_embeds tensor ONLY in PhotoMaker V2 mode (#987)
This commit is contained in:
parent
b542894fb9
commit
e9bc3b6c06
@ -2800,7 +2800,7 @@ sd_image_t* generate_image_internal(sd_ctx_t* sd_ctx,
|
|||||||
LOG_WARN("Turn off PhotoMaker");
|
LOG_WARN("Turn off PhotoMaker");
|
||||||
sd_ctx->sd->stacked_id = false;
|
sd_ctx->sd->stacked_id = false;
|
||||||
} else {
|
} else {
|
||||||
if (pm_params.id_images_count != id_embeds->ne[1]) {
|
if (pmv2 && pm_params.id_images_count != id_embeds->ne[1]) {
|
||||||
LOG_WARN("PhotoMaker image count (%d) does NOT match ID embeds (%d). You should run face_detect.py again.", pm_params.id_images_count, id_embeds->ne[1]);
|
LOG_WARN("PhotoMaker image count (%d) does NOT match ID embeds (%d). You should run face_detect.py again.", pm_params.id_images_count, id_embeds->ne[1]);
|
||||||
LOG_WARN("Turn off PhotoMaker");
|
LOG_WARN("Turn off PhotoMaker");
|
||||||
sd_ctx->sd->stacked_id = false;
|
sd_ctx->sd->stacked_id = false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user