Skip to content

过短的视频生成报错 #24

@Jandown

Description

@Jandown

生成较短时间的视频,比如1秒就会报错,超过1秒或者较长的就没问题

Traceback (most recent call last):
File "D:\Animate-X\utils\registry.py", line 64, in build_from_config
return req_type_entry(**cfg)
File "D:\Animate-X\animatex\inference_animate_x_entrance.py", line 61, in inference_animate_x_entrance
worker(0, cfg, cfg_update)
File "D:\Animate-X\animatex\inference_animate_x_entrance.py", line 410, in worker
vit_frame, video_data, misc_data, dwpose_data, random_ref_frame_data, random_ref_dwpose_data, pose_embedding, ref_pose_embedding, original_driven_video_data = load_video_frames(ref_image_key, pose_seq_key, original_driven_video_seq_key, pose_embedding_key, train_trans, vit_transforms, train_trans_pose, max_frames=cfg.max_frames, frame_interval =cfg.frame_interval, resolution=cfg.resolution)
File "D:\Animate-X\animatex\inference_animate_x_entrance.py", line 199, in load_video_frames
i_key = list(frames_all.keys())[i_index]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Animate-X\inference.py", line 16, in
INFER_ENGINE.build(dict(type=cfg_update.TASK_TYPE), cfg_update=cfg_update.cfg_dict)
File "D:\Animate-X\utils\registry.py", line 104, in build
return self.build_func(*args, **kwargs, registry=self)
File "D:\Animate-X\utils\registry_class.py", line 9, in build_func
return build_from_config(cfg, registry, **kwargs)
File "D:\Animate-X\utils\registry.py", line 66, in build_from_config
raise Exception(f"Failed to invoke function {req_type_entry}, with {e}")
Exception: Failed to invoke function <function inference_animate_x_entrance at 0x000001CA18D98280>, with list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions