CogVideo icon indicating copy to clipboard operation
CogVideo copied to clipboard

CogVideoX-5B-I2V raises error

Open yjhong89 opened this issue 1 year ago • 4 comments

System Info / 系統信息

When running sample_video.py with CogVideoX-5B-I2V model, error raised.

  1. patch_size
  • since patch_size in config is integer, error occured in here: https://github.com/THUDM/CogVideo/blob/e2987ff565703953b34749db2d1053e26bba2e2c/sat/dit_video_concat.py#L664

  • after fixing patch_size as [2,2,2] following load_checkpoint error occured image

Information / 问题信息

  • [X] The official example scripts / 官方的示例脚本
  • [ ] My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

  • Running sample_video.py with CogVideoX-5B-I2V model

Expected behavior / 期待表现

  • Load_checkpoint error

yjhong89 avatar Nov 10 '24 13:11 yjhong89

Same Error in patch_size: [rank0]: self.spatial_length = latent_width * latent_height // reduce(mul, patch_size[1:]) [rank0]: TypeError: 'int' object is not subscriptable

anpwu avatar Nov 11 '24 06:11 anpwu

Another Error is: [rank0]: File "CogVideo/sat/sgm/util.py", line 261, in instantiate_from_config [rank0]: return get_obj_from_str(config["target"])(**config.get("params", dict()), **extra_kwargs) [rank0]: TypeError: dit_video_concat.Basic3DPositionEmbeddingMixin() got multiple values for keyword argument 'height_interpolation'

anpwu avatar Nov 11 '24 07:11 anpwu

Same problem after merging CogVideo1.5X branch. It seems that this update cause the prolems:https://github.com/THUDM/CogVideo/commit/3a9af5bdd937faaa7803914aa94e384d7f40af67#diff-7b0a094155a48dc8761cbfd20bdf64fe0cc9021873b7ab23cea5a5cae38a670e

csf0429 avatar Nov 12 '24 06:11 csf0429

Same problem after merging CogVideo1.5X branch. It seems that this update cause the prolems:3a9af5b#diff-7b0a094155a48dc8761cbfd20bdf64fe0cc9021873b7ab23cea5a5cae38a670e

Hi, did you solve it? Could you tell me how to modify the code to run? Thanks a lot.

QiqLiang avatar Nov 15 '24 11:11 QiqLiang

@yjhong89 Hi, have a simple question, how to prepare dataset for image to video (I2V) fine-tuning, thanks.

AlphaNext avatar Nov 23 '24 06:11 AlphaNext

Same problem after merging CogVideo1.5X branch. It seems that this update cause the prolems:3a9af5b#diff-7b0a094155a48dc8761cbfd20bdf64fe0cc9021873b7ab23cea5a5cae38a670e

Hi, did you solve it? Could you tell me how to modify the code to run? Thanks a lot.

+1, how to solve this problem? img_v3_02hk_2a11183b-3adc-4f67-8390-39eefd3d148g

appleyang123 avatar Dec 16 '24 10:12 appleyang123

Same problem here when using CogvideoX-2b.

quanhaol avatar Dec 17 '24 11:12 quanhaol

Same problem here when using CogvideoX-2b.

phyllispeng123 avatar Jan 03 '25 05:01 phyllispeng123

If you are using the CogVideoX 1.0 series, you should use the compressed package we released.

zRzRzRzRzRzRzR avatar Jan 08 '25 02:01 zRzRzRzRzRzRzR

If you are using the CogVideoX 1.0 series, you should use the compressed package we released.

where I can find the compressed package? and if that also works for CogvideoX-2b?

phyllispeng123 avatar Jan 08 '25 03:01 phyllispeng123