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

Error when using batch_size. #132

Open
1 of 2 tasks
neph1 opened this issue Dec 22, 2024 · 1 comment
Open
1 of 2 tasks

Error when using batch_size. #132

neph1 opened this issue Dec 22, 2024 · 1 comment

Comments

@neph1
Copy link

neph1 commented Dec 22, 2024

System Info / 系統信息

Thank you for providing a way to finetune LTX-video. Training seems to work well, but when I try changing batching (in this case to 4), I encounter this exception. I'm using the suggested example script in the repo. Running on diffusers from github, updated two days ago.

This is the exception:

12/21/2024 12:38:27 - ERROR - finetrainers - Traceback (most recent call last):
  File "/some_path/train.py", line 34, in main
    trainer.train()
  File "/some_path/trainer.py", line 424, in train
    noisy_latents = (1.0 - sigmas) * latent_conditions["latents"] + sigmas * noise
RuntimeError: The size of tensor a (4) must match the size of tensor b (128) at non-singleton dimension 2

Also hijacking my own issue:
I tried adding --resume_from_checkpoint since that worked with the old cogvideox-factory trainer. But it doesn't seem to do anything now. Is that correct?

Thanks!

Information / 问题信息

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

Reproduction / 复现过程

Change --batch_size 1 to something other than 1

Expected behavior / 期待表现

Training would continue with batching enabled

@a-r-r-o-w
Copy link
Owner

Oh interesting, thanks for reporting! I'll look into this shortly.

--resume_from_checkpoint support will be added soon too. I think #130 has it working, so it will be in main soon hopefully

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

2 participants