mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-07-30 23:00:41 -05:00
fix: add frame dimension for Hunyuan IMG2VID encoding (#1816)
This commit is contained in:
@@ -5789,7 +5789,7 @@ static std::optional<ImageGenerationLatents> prepare_video_generation_latents(sd
|
||||
auto encode_condition_frame = [&](const sd::Tensor<float>& image,
|
||||
int64_t latent_frame,
|
||||
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()) {
|
||||
LOG_ERROR("failed to encode Hunyuan Video %s conditioning frame", name);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user