tumurzakov / AnimateDiff

AnimationDiff with train
Apache License 2.0
111 stars 28 forks source link

Configuration example #1

Closed Katehuuh closed 1 year ago

Katehuuh commented 1 year ago

I created tuneavideo.yaml to be able to train python train.py --config configs/prompts/tuneavideo.yaml but i encountered an error:

TypeError: AnimationPipeline.call() missing 1 required positional argument: 'video_length'

or

TypeError: TuneAVideoDataset.init() got an unexpected keyword argument 'video_length'

To fix i modify dataset.py, train.py to get frames from video and remove from this part from my config:

train_data:
  video_length: 87

Training work but I can't confirm if the config is correct.

tumurzakov commented 1 year ago

https://github.com/tumurzakov/AnimateDiff/blob/main/Fine_tune_AnimateDiff.ipynb