Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

num_frames is not defined for latte #283

Closed
littletomatodonkey opened this issue Sep 23, 2024 · 1 comment · Fixed by #288
Closed

num_frames is not defined for latte #283

littletomatodonkey opened this issue Sep 23, 2024 · 1 comment · Fixed by #288
Assignees

Comments

@littletomatodonkey
Copy link

Hi, when i use xDiT for latte inference, it told me the following error. I checked the diffusers and num_frames has never been a parameter for LattePipeline, so how can i avoid the problem? Thanks!

    main()
  File "/mnt/bn/multimodel/code/t2v/xDiT/examples/latte_example.py", line 40, in main
    output = pipe(
  File "/opt/tiger/miniconda3/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
  File "/mnt/bn/multimodel/code/t2v/xDiT/xfuser/model_executor/pipelines/base_pipeline.py", line 133, in data_parallel_fn
    return func(self, *args, **kwargs)
  File "/mnt/bn/multimodel/code/t2v/xDiT/xfuser/model_executor/pipelines/base_pipeline.py", line 147, in check_naive_forward_fn
    return self.module(*args, **kwargs)
  File "/opt/tiger/miniconda3/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
TypeError: LattePipeline.__call__() got an unexpected keyword argument 'num_frames'

My diffusers version 0.30.3, the xdit is main branch and the infer script is as follows.

torchrun --nproc_per_node=1 --master_port 12345 latte_example.py  --model="/mnt/bn/multimodel/models/t2v/maxin-cn--Latte-1/" --warmup_steps=5
@feifeibear
Copy link
Collaborator

We developped Latte using an outdated version of diffusers and plan to address this issue as soon as possible. Your assistance in resolving this matter would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants