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

lora_trainer.py seems to be expecting images #13

Open
peteromallet opened this issue Oct 2, 2023 · 1 comment
Open

lora_trainer.py seems to be expecting images #13

peteromallet opened this issue Oct 2, 2023 · 1 comment

Comments

@peteromallet
Copy link

I'm trying to train with the lora_trainer. I have folders set up in the correct format with mp4 videos inside them for training

However, when I try to run it, I'm getting the below error that seems to say it's expecting images.

Any idea what's going on here? Am I supposed to be feeding in individual frames rather than videos?

File "/root/miniconda3/envs/animatediff2/lib/python3.10/site-packages/datasets/formatting/formatting.py", line 396, in call
return self.format_row(pa_table)
File "/root/miniconda3/envs/animatediff2/lib/python3.10/site-packages/datasets/formatting/formatting.py", line 485, in format_row
formatted_batch = self.format_batch(pa_table)
File "/root/miniconda3/envs/animatediff2/lib/python3.10/site-packages/datasets/formatting/formatting.py", line 515, in format_batch
return self.transform(batch)
File "/workspace/AnimateDiff/train_lora.py", line 670, in preprocess_train
images = [image.convert("RGB") for image in examples[image_column]]
File "/workspace/AnimateDiff/train_lora.py", line 670, in
images = [image.convert("RGB") for image in examples[image_column]]
AttributeError: 'str' object has no attribute 'convert'
Steps: 0%| | 0/700 [00:00<?, ?it/s]

@tumurzakov
Copy link
Owner

Hi, train lora/dreambooth with animatediff seems to be wrong way. I got pure results with it. The idea was to train multiple frames simultanously. But it led to background overfit without any generalization of training object. Try to train lora traditional way. It will work with animatediff too.

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