Skip to content

How to use "t2v" in app.py? #11

Open

Description

@JING-SHAO

I download models from 'https://huggingface.co/zai-org/CogVideoX-5b' and change the i2v to 'False' in app.py, but I got an error:
Traceback (most recent call last):
File "/SENORITA/batch_process.py", line 301, in
main()
File "/SENORITA/batch_process.py", line 281, in main
pipe = init_pipe()
File "/SENORITA/batch_process.py", line 80, in init_pipe
transformer.load_state_dict(transformer_state_dict, strict=True)
File "/anaconda3/envs/rita/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2629, in load_state_dict
raise RuntimeError(
RuntimeError: Error(s) in loading state_dict for CogVideoXTransformer3DModel:
Unexpected key(s) in state_dict: "patch_embed.pos_embedding".
size mismatch for patch_embed.proj.weight: copying a param with shape torch.Size([3072, 32, 2, 2]) from checkpoint, the shape in current model is torch.Size([3072, 16, 2, 2]).

Is the model only trained for i2v?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions