[Enhancement]remove duplicate video preprocess in Wan2.2 pipeline (#2963)

Signed-off-by: bjf-frz <frz123db@gmail.com>
This commit is contained in:
bjf-frz authored and GitHub committed 2026-04-21 20:33:09 +08:00
1 parent b001151e0d
commit 5f029ee4d5
5 files changed
-23

No files matched your search

@@ -44,7 +44,6 @@ def test_i2v_preprocess_requires_image_and_resizes_to_480p_aspect() -> None:
assert result.sampling_params.height == 432
assert result.sampling_params.width == 880
assert prompt["multi_modal_data"]["image"].size == (880, 432)
assert prompt["additional_information"]["preprocessed_image"].shape[-2:] == (432, 880)
missing_image = SimpleNamespace(
prompts=[{"prompt": "p", "multi_modal_data": {}}],
@@ -41,7 +41,6 @@ def test_ti2v_preprocess_uses_720p_area_for_image_condition() -> None:
assert result.sampling_params.height == 672
assert result.sampling_params.width == 1344
assert result.prompts[0]["multi_modal_data"]["image"].size == (1344, 672)
assert result.prompts[0]["additional_information"]["preprocessed_image"].shape[-2:] == (672, 1344)
def test_ti2v_diffuse_without_image_condition_expands_patch_timesteps() -> None: