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

Assert seq_lens.max() <= seq_len #181

Open
onoregleb opened this issue Mar 5, 2025 · 0 comments
Open

Assert seq_lens.max() <= seq_len #181

onoregleb opened this issue Mar 5, 2025 · 0 comments

Comments

@onoregleb
Copy link

I have a script:

torchrun --nproc_per_node=4 generate.py \
  --task i2v-14B \
  --size 480*832 \
  --ckpt_dir /mnt/tank/scratch/edubskiy/Wan2.1/I2V-14B-480P \
  --image img.jpg \
  --frame_num 33 \
  --t5_cpu \
  --offload_model True \
  --sample_steps 40 \
  --save_file output_video.mp4 \
  --dit_fsdp --t5_fsdp --ulysses_size 4 \
  --prompt "A young man enjoying a relaxed photoshoot in a sunlit studio. He is casually moving, adjusting his posture with ease, and smiling naturally. The photographer in the background captures candid moments as he playfully runs a hand through his hair. The setting is modern and minimalistic, with soft natural light casting gentle shadows on the white backdrop."

When I run it, the error occurs: assert seq_lens.max() <= seq_len

This occurs when I change the frame_nums parameter, even though it follows the 4n+1 rule. How can I fix this?

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

No branches or pull requests

1 participant