mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-08-10 06:07:58 +00:00
fix: add frame dimension for Hunyuan IMG2VID encoding (#1816)
This commit is contained in:
parent
b0f856804c
commit
87a01773be
@ -5789,7 +5789,7 @@ static std::optional<ImageGenerationLatents> prepare_video_generation_latents(sd
|
|||||||
auto encode_condition_frame = [&](const sd::Tensor<float>& image,
|
auto encode_condition_frame = [&](const sd::Tensor<float>& image,
|
||||||
int64_t latent_frame,
|
int64_t latent_frame,
|
||||||
const char* name) -> bool {
|
const char* name) -> bool {
|
||||||
auto encoded = sd_ctx->sd->encode_first_stage(image);
|
auto encoded = sd_ctx->sd->encode_first_stage(image.unsqueeze(2));
|
||||||
if (encoded.empty()) {
|
if (encoded.empty()) {
|
||||||
LOG_ERROR("failed to encode Hunyuan Video %s conditioning frame", name);
|
LOG_ERROR("failed to encode Hunyuan Video %s conditioning frame", name);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user