Download examples/wanvideo/model_training/full/Wan2.2-Fun-A14B-Control-Camera.sh from jiaxi2002/diff-storyboard: direct link, hf CLI and curl.
- Browser
- Download file 2.03 kB
-
https://huggingface.co/jiaxi2002/diff-storyboard/resolve/main/examples/wanvideo/model_training/full/Wan2.2-Fun-A14B-Control-Camera.sh
- Command line
-
hf download hf://jiaxi2002/diff-storyboard/examples/wanvideo/model_training/full/Wan2.2-Fun-A14B-Control-Camera.sh
-
curl -L -o Wan2.2-Fun-A14B-Control-Camera.sh https://huggingface.co/jiaxi2002/diff-storyboard/resolve/main/examples/wanvideo/model_training/full/Wan2.2-Fun-A14B-Control-Camera.sh
2.03 kB
| accelerate launch --config_file examples/wanvideo/model_training/full/accelerate_config_14B.yaml examples/wanvideo/model_training/train.py \ | |
| --dataset_base_path data/example_video_dataset \ | |
| --dataset_metadata_path data/example_video_dataset/metadata_camera_control.csv \ | |
| --data_file_keys "video,control_video,reference_image" \ | |
| --height 480 \ | |
| --width 832 \ | |
| --dataset_repeat 100 \ | |
| --model_id_with_origin_paths "PAI/Wan2.2-Fun-A14B-Control-Camera:high_noise_model/diffusion_pytorch_model*.safetensors,PAI/Wan2.2-Fun-A14B-Control-Camera:models_t5_umt5-xxl-enc-bf16.pth,PAI/Wan2.2-Fun-A14B-Control-Camera:Wan2.1_VAE.pth" \ | |
| --learning_rate 1e-4 \ | |
| --num_epochs 5 \ | |
| --remove_prefix_in_ckpt "pipe.dit." \ | |
| --output_path "./models/train/Wan2.2-Fun-A14B-Control-Camera_high_niose_full" \ | |
| --trainable_models "dit" \ | |
| --extra_inputs "input_image,camera_control_direction,camera_control_speed" \ | |
| --max_timestep_boundary 0.358 \ | |
| --min_timestep_boundary 0 | |
| # boundary corresponds to timesteps [900, 1000] | |
| accelerate launch --config_file examples/wanvideo/model_training/full/accelerate_config_14B.yaml examples/wanvideo/model_training/train.py \ | |
| --dataset_base_path data/example_video_dataset \ | |
| --dataset_metadata_path data/example_video_dataset/metadata_camera_control.csv \ | |
| --data_file_keys "video,control_video,reference_image" \ | |
| --height 480 \ | |
| --width 832 \ | |
| --dataset_repeat 100 \ | |
| --model_id_with_origin_paths "PAI/Wan2.2-Fun-A14B-Control-Camera:low_noise_model/diffusion_pytorch_model*.safetensors,PAI/Wan2.2-Fun-A14B-Control-Camera:models_t5_umt5-xxl-enc-bf16.pth,PAI/Wan2.2-Fun-A14B-Control-Camera:Wan2.1_VAE.pth" \ | |
| --learning_rate 1e-4 \ | |
| --num_epochs 5 \ | |
| --remove_prefix_in_ckpt "pipe.dit." \ | |
| --output_path "./models/train/Wan2.2-Fun-A14B-Control-Camera_low_noise_full" \ | |
| --trainable_models "dit" \ | |
| --extra_inputs "input_image,camera_control_direction,camera_control_speed" \ | |
| --max_timestep_boundary 1 \ | |
| --min_timestep_boundary 0.358 | |
| # boundary corresponds to timesteps [0, 900] |