Fine-tune DynamiCrafter for Image-to-Video Generation
mainTo fine-tune the model for Image-to-Video generation, follow these requirements and steps:
Prerequisites
- Dataset: Download the WebVid Dataset. The
.csvfiles must containpage_dir,videoid, andnamecolumns. - Models: Place pretrained models in the appropriate
checkpoints/directories. - Strategy: The process uses
DDPShardedStrategyby default; ensurepytorch_lightningis installed and supports it.
Setup
- Update
<YOUR_SAVE_ROOT_DIR>in the training run script (e.g.,training_1024_v1.0/run.sh). - Verify all paths in the configuration file (e.g.,
training_1024_v1.0/config.yaml), specifically:model:pretrained_checkpointdata:data_dirdata:meta_path
Execution
Run the training script corresponding to your target resolution (1024 or 512). All checkpoints, Tensorboard records, and logs will be saved to your specified <YOUR_SAVE_ROOT_DIR>.