* Update Flow * Update Flow * Update Flow * add image recaptioning * Fix bug in t2v * update train_reward_lora.py * update reward training * Update V5.1 and mix multi text_encoders to one pipeline * Update V5.1 training Code * Update ComfyUI * Update Comment * Delete files * update reward training * Update Readme * fix extract frames in compute_semantic_consistency * Update Readme && Remove to in prediction * Update Demo * Update Readme * Update ui * support vae gradient checkpointing in reward training * Update Training Readme --------- Co-authored-by: hkunzhe <huangkunzhe.hkz@alibaba-inc.com>
40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
export MODEL_NAME="models/Diffusion_Transformer/EasyAnimateV5.1-12b-zh-InP"
|
|
export DATASET_NAME="datasets/internal_datasets/"
|
|
export DATASET_META_NAME="datasets/internal_datasets/metadata.json"
|
|
export NCCL_IB_DISABLE=1
|
|
export NCCL_P2P_DISABLE=1
|
|
NCCL_DEBUG=INFO
|
|
|
|
# When train model with multi machines, use "--config_file accelerate.yaml" instead of "--mixed_precision='bf16'".
|
|
accelerate launch --mixed_precision="bf16" scripts/train_lora.py \
|
|
--pretrained_model_name_or_path=$MODEL_NAME \
|
|
--train_data_dir=$DATASET_NAME \
|
|
--train_data_meta=$DATASET_META_NAME \
|
|
--config_path "config/easyanimate_video_v5.1_magvit_qwen.yaml" \
|
|
--image_sample_size=1024 \
|
|
--video_sample_size=256 \
|
|
--token_sample_size=512 \
|
|
--video_sample_stride=3 \
|
|
--video_sample_n_frames=49 \
|
|
--train_batch_size=1 \
|
|
--video_repeat=1 \
|
|
--gradient_accumulation_steps=1 \
|
|
--dataloader_num_workers=8 \
|
|
--num_train_epochs=100 \
|
|
--checkpointing_steps=100 \
|
|
--learning_rate=1e-04 \
|
|
--seed=42 \
|
|
--low_vram \
|
|
--output_dir="output_dir" \
|
|
--gradient_checkpointing \
|
|
--mixed_precision="bf16" \
|
|
--adam_weight_decay=5e-2 \
|
|
--adam_epsilon=1e-10 \
|
|
--vae_mini_batch=1 \
|
|
--max_grad_norm=0.05 \
|
|
--random_hw_adapt \
|
|
--training_with_video_token_length \
|
|
--loss_type="flow" \
|
|
--enable_bucket \
|
|
--uniform_sampling \
|
|
--train_mode="inpaint" |