Skip to content

KeyError: 'target_video_length' #1086

@buptmengjj

Description

@buptmengjj

When I ran wan2.2-i2v-A14B, I encountered the following problem:“
" if config["target_video_length"] % config["vae_stride"][0] != 1:
~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'target_video_length'"
, and my code is as follows:
“output_frames = self.pipe(
input_image=image,
prompt=prompt,
negative_prompt=negative_prompt,
height=height,
width=width,
num_frames=cfg.get('num_frames', 81),

            num_inference_steps=cfg.get('num_inference_steps', 50),
            cfg_scale=cfg.get('guidance_scale', 5.0),
            tiled=True,
            tea_cache_l1_thresh=0.17, # The larger this value is, the faster the speed, but the worse the visual quality.
            tea_cache_model_id="Wan2.2-I2V-A14B-720P", # Choo
            switch_DiT_boundary=0.9
        )”

can you help me ? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions