Remove unused scripts and update TODO list

This commit is contained in:
jzhang38
2024-10-24 02:27:03 +00:00
parent 6e313fad97
commit 8fb5c38381
17 changed files with 1 additions and 436 deletions
+1 -1
View File
@@ -8,6 +8,6 @@ bash scripts/text_condition/gpu/train_t2v.sh
## TODO
- [ ] Create dummy debug data.
- [ ] Add Mochi
- [ ] Add Mochi VAE
- [ ] Create dummy debug data.
@@ -1,34 +0,0 @@
WEIGHT_PATH="/home/opensora/pre_weights/"
export PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}$(pwd)"
export MASTER_PORT=12359
if [ -z "$SAMPLE_SAVE_PATH" ]; then
export SAMPLE_SAVE_PATH="/home/image_data/sample_videos"
fi
if [ -z "$SAMPLE_HEIGHT" ]; then
echo "You should set both envs of SAMPLE_HEIGHT and SAMPLE_WIDTH"
return
fi
torchrun --nproc_per_node=8 opensora/sample/sample_inpaint_on_npu.py \
--model_path /home/image_data/checkpoints/${PROJECT_NAME} \
--num_frames ${NUM_FRAME} \
--height $SAMPLE_HEIGHT \
--width $SAMPLE_WIDTH \
--cache_dir "../cache_dir" \
--text_encoder_name ${WEIGHT_PATH}/google/mt5-xxl \
--text_prompt "/home/image_data/checkpoints/i2v_validation_dir/prompt.txt" \
--ae CausalVAEModel_4x8x8 \
--ae_path "${WEIGHT_PATH}/test140k/" \
--save_img_path "${SAMPLE_SAVE_PATH}/${PROJECT_NAME}" \
--fps 24 \
--max_sequence_length 512 \
--guidance_scale 5.0 \
--num_sampling_steps 50 \
--sample_method PNDM \
--enable_tiling \
--tile_overlap_factor 0.125 \
--model_3d \
--validation_dir "/home/image_data/checkpoints/i2v_validation_dir"
@@ -1,54 +0,0 @@
export PROJECT=$PROJECT_NAME
WEIGHT_PATH="/home/opensora/pre_weights/"
env
#export WANDB_MODE='offline'
export HCCL_OP_BASE_FFTS_MODE_ENABLE=TRUE
export HCCL_ALGO="level0:NA;level1:H-D_R"
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
accelerate launch \
--config_file scripts/accelerate_configs/multi_node_example_by_deepspeed.yaml \
--machine_rank=${MACHINE_RANK} \
--main_process_ip=${MAIN_PROCESS_IP_VALUE} \
opensora/train/train_t2v_diffusers.py \
--model OpenSoraT2V-ROPE-L/122 \
--text_encoder_name ${WEIGHT_PATH}/google/mt5-xxl \
--cache_dir "../cache_dir" \
--dataset t2v \
--data "scripts/train_data/merge_data_on_npu.txt" \
--ae CausalVAEModel_D4_4x8x8 \
--ae_path "${WEIGHT_PATH}/test140k/" \
--sample_rate 1 \
--num_frames 1 \
--max_height 480 \
--max_width 640 \
--interpolation_scale_t 1.0 \
--interpolation_scale_h 1.0 \
--interpolation_scale_w 1.0 \
--attention_mode xformers \
--gradient_checkpointing \
--train_batch_size=8 \
--dataloader_num_workers 20 \
--gradient_accumulation_steps=1 \
--max_train_steps=1000000 \
--learning_rate=1e-4 \
--lr_scheduler="constant" \
--seed=10 \
--lr_warmup_steps=500 \
--mixed_precision="bf16" \
--report_to="wandb" \
--checkpointing_steps=2000 \
--output_dir="/home/image_data/checkpoints/${PROJECT}/" \
--allow_tf32 \
--model_max_length 512 \
--use_image_num 0 \
--snr_gamma 5.0 \
--use_ema \
--ema_start_step 0 \
--cfg 0.1 \
--enable_tiling \
--tile_overlap_factor 0.0 \
--use_rope \
--noise_offset 0.02 \
--resume_from_checkpoint="latest"
@@ -1,54 +0,0 @@
export PROJECT=$PROJECT_NAME
WEIGHT_PATH="/home/opensora/pre_weights/"
env
#export WANDB_MODE='offline'
export HCCL_OP_BASE_FFTS_MODE_ENABLE=TRUE
export HCCL_ALGO="level0:NA;level1:H-D_R"
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
accelerate launch \
--config_file scripts/accelerate_configs/multi_node_example_by_deepspeed.yaml \
--machine_rank=${MACHINE_RANK} \
--main_process_ip=${MAIN_PROCESS_IP_VALUE} \
opensora/train/train_t2v_diffusers.py \
--model OpenSoraT2V-ROPE-L/122 \
--text_encoder_name ${WEIGHT_PATH}/google/mt5-xxl \
--cache_dir "../cache_dir" \
--dataset t2v \
--data "scripts/train_data/merge_data_on_npu.txt" \
--ae CausalVAEModel_D4_4x8x8 \
--ae_path "${WEIGHT_PATH}/test140k/" \
--sample_rate 1 \
--num_frames 1 \
--max_height 720 \
--max_width 1280 \
--interpolation_scale_t 1.0 \
--interpolation_scale_h 1.5 \
--interpolation_scale_w 2.0 \
--attention_mode xformers \
--gradient_checkpointing \
--train_batch_size=1 \
--dataloader_num_workers 8 \
--gradient_accumulation_steps=1 \
--max_train_steps=1000000 \
--learning_rate=1e-4 \
--lr_scheduler="constant" \
--seed=10 \
--lr_warmup_steps=500 \
--mixed_precision="bf16" \
--report_to="wandb" \
--checkpointing_steps=1000 \
--output_dir="/home/image_data/checkpoints/${PROJECT}/" \
--allow_tf32 \
--model_max_length 512 \
--use_image_num 0 \
--snr_gamma 5.0 \
--use_ema \
--ema_start_step 0 \
--cfg 0.1 \
--enable_tiling \
--tile_overlap_factor 0.0 \
--use_rope \
--noise_offset 0.02 \
--resume_from_checkpoint="latest"
@@ -1,61 +0,0 @@
export WANDB_KEY="720d886d8c437c2142c88056a1eab8ef78d64a1f"
# # export WANDB_MODE="offline"
export ENTITY="yunyangge"
WEIGHT_PATH="/home/opensora/pre_weights/"
env
# export WANDB_MODE='offline'
export HCCL_OP_BASE_FFTS_MODE_ENABLE=TRUE
export HCCL_ALGO="level0:NA;level1:H-D_R"
accelerate launch \
--config_file scripts/accelerate_configs/multi_node_example_by_deepspeed.yaml \
--machine_rank=${MACHINE_RANK} \
--main_process_ip=${MAIN_PROCESS_IP_VALUE} \
opensora/train/train_inpaint.py \
--model OpenSoraInpaint-ROPE-L/122 \
--text_encoder_name ${WEIGHT_PATH}/google/mt5-xxl \
--cache_dir "../cache_dir" \
--dataset i2v \
--ae CausalVAEModel_4x8x8 \
--ae_path "${WEIGHT_PATH}/test140k/" \
--video_data "./scripts/train_data/video_data_on_npu.txt" \
--image_data "./scripts/train_data/image_data_on_npu.txt" \
--sample_rate 1 \
--num_frames ${NUM_FRAME} \
--max_height 480 \
--max_width 640 \
--interpolation_scale_t 1.0 \
--interpolation_scale_h 1.0 \
--interpolation_scale_w 1.0 \
--attention_mode xformers \
--gradient_checkpointing \
--train_batch_size=1 \
--dataloader_num_workers 8 \
--gradient_accumulation_steps=1 \
--max_train_steps=1000000 \
--learning_rate=1e-5 \
--lr_scheduler="constant" \
--seed=42 \
--lr_warmup_steps=0 \
--mixed_precision="bf16" \
--report_to="wandb" \
--checkpointing_steps=200 \
--output_dir="/home/image_data/checkpoints/${PROJECT}/" \
--allow_tf32 \
--model_max_length 512 \
--use_image_num 0 \
--snr_gamma 5.0 \
--use_ema \
--ema_start_step 0 \
--cfg 0.1 \
--enable_tiling \
--tile_overlap_factor 0.125 \
--use_rope \
--noise_offset 0.02 \
--pretrained "/home/image_data/checkpoints/gyy_pretrained_f125/model_ema/diffusion_pytorch_model.safetensors" \
--resume_from_checkpoint="latest" \
--i2v_ratio 0.5 \
--transition_ratio 0.4 \
--default_text_ratio 0.5 \
--group_frame \
--speed_factor 1.1 \
@@ -1,57 +0,0 @@
export PROJECT=$PROJECT_NAME
WEIGHT_PATH="/home/opensora/pre_weights/"
env
#export WANDB_MODE='offline'
export HCCL_OP_BASE_FFTS_MODE_ENABLE=TRUE
export HCCL_ALGO="level0:NA;level1:H-D_R"
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
accelerate launch \
--config_file scripts/accelerate_configs/multi_node_example_by_deepspeed.yaml \
--machine_rank=${MACHINE_RANK} \
--main_process_ip=${MAIN_PROCESS_IP_VALUE} \
opensora/train/train_t2v_diffusers.py \
--model OpenSoraT2V-ROPE-L/122 \
--text_encoder_name ${WEIGHT_PATH}/google/mt5-xxl \
--cache_dir "../cache_dir" \
--dataset t2v \
--data "scripts/train_data/merge_data_on_npu.txt" \
--ae CausalVAEModel_D4_4x8x8 \
--ae_path "${WEIGHT_PATH}/test140k/" \
--sample_rate 1 \
--num_frames ${NUM_FRAME} \
--max_height 480 \
--max_width 640 \
--interpolation_scale_t 1.0 \
--interpolation_scale_h 1.0 \
--interpolation_scale_w 1.0 \
--attention_mode xformers \
--gradient_checkpointing \
--train_batch_size=1 \
--dataloader_num_workers 8 \
--gradient_accumulation_steps=1 \
--max_train_steps=1000000 \
--learning_rate=1e-4 \
--lr_scheduler="constant" \
--seed=10 \
--lr_warmup_steps=500 \
--mixed_precision="bf16" \
--report_to="wandb" \
--checkpointing_steps=1000 \
--output_dir="/home/image_data/checkpoints/${PROJECT}/" \
--allow_tf32 \
--model_max_length 512 \
--use_image_num 0 \
--snr_gamma 5.0 \
--use_ema \
--ema_start_step 0 \
--cfg 0.1 \
--enable_tiling \
--tile_overlap_factor 0.125 \
--use_rope \
--noise_offset 0.02 \
--resume_from_checkpoint="latest" \
--enable_stable_fp32 \
--ema_decay 0.999 \
--speed_factor 1.0 \
--drop_short_ratio 1.0
@@ -1,57 +0,0 @@
export PROJECT=$PROJECT_NAME
WEIGHT_PATH="/home/opensora/pre_weights/"
env
#export WANDB_MODE='offline'
export HCCL_OP_BASE_FFTS_MODE_ENABLE=TRUE
export HCCL_ALGO="level0:NA;level1:H-D_R"
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
accelerate launch \
--config_file scripts/accelerate_configs/multi_node_example_by_deepspeed.yaml \
--machine_rank=${MACHINE_RANK} \
--main_process_ip=${MAIN_PROCESS_IP_VALUE} \
opensora/train/train_t2v_diffusers.py \
--model OpenSoraT2V-ROPE-L/122 \
--text_encoder_name ${WEIGHT_PATH}/google/mt5-xxl \
--cache_dir "../cache_dir" \
--dataset t2v \
--data "scripts/train_data/merge_data_on_npu.txt" \
--ae CausalVAEModel_D4_4x8x8 \
--ae_path "${WEIGHT_PATH}/test140k/" \
--sample_rate 1 \
--num_frames ${NUM_FRAME} \
--max_height 720 \
--max_width 1280 \
--interpolation_scale_t 1.0 \
--interpolation_scale_h 1.5 \
--interpolation_scale_w 2.0 \
--attention_mode xformers \
--gradient_checkpointing \
--train_batch_size=1 \
--dataloader_num_workers 8 \
--gradient_accumulation_steps=1 \
--max_train_steps=1000000 \
--learning_rate=1e-4 \
--lr_scheduler="constant" \
--seed=10 \
--lr_warmup_steps=500 \
--mixed_precision="bf16" \
--report_to="wandb" \
--checkpointing_steps=1000 \
--output_dir="/home/image_data/checkpoints/${PROJECT}/" \
--allow_tf32 \
--model_max_length 512 \
--use_image_num 0 \
--snr_gamma 5.0 \
--use_ema \
--ema_start_step 0 \
--cfg 0.1 \
--enable_tiling \
--tile_overlap_factor 0.125 \
--use_rope \
--noise_offset 0.02 \
--resume_from_checkpoint="latest" \
--enable_stable_fp32 \
--ema_decay 0.999 \
--speed_factor 1.0 \
--drop_short_ratio 1.0
@@ -1,59 +0,0 @@
export PROJECT=$PROJECT_NAME
WEIGHT_PATH="/home/opensora/pre_weights/"
env
#export WANDB_MODE='offline'
export HCCL_OP_BASE_FFTS_MODE_ENABLE=TRUE
export HCCL_ALGO="level0:NA;level1:H-D_R"
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
accelerate launch \
--config_file scripts/accelerate_configs/multi_node_example_by_deepspeed.yaml \
--machine_rank=${MACHINE_RANK} \
--main_process_ip=${MAIN_PROCESS_IP_VALUE} \
opensora/train/train_t2v_diffusers.py \
--model OpenSoraT2V-ROPE-L/122 \
--text_encoder_name ${WEIGHT_PATH}/google/mt5-xxl \
--cache_dir "../cache_dir" \
--dataset t2v \
--data "scripts/train_data/merge_data_on_npu.txt" \
--ae CausalVAEModel_D4_4x8x8 \
--ae_path "${WEIGHT_PATH}/test140k/" \
--sample_rate 1 \
--num_frames ${NUM_FRAME} \
--max_height 480 \
--max_width 640 \
--interpolation_scale_t 1.0 \
--interpolation_scale_h 1.0 \
--interpolation_scale_w 1.0 \
--attention_mode xformers \
--gradient_checkpointing \
--train_batch_size=1 \
--dataloader_num_workers 8 \
--gradient_accumulation_steps=1 \
--max_train_steps=1000000 \
--learning_rate=1e-4 \
--lr_scheduler="constant" \
--seed=10 \
--lr_warmup_steps=500 \
--mixed_precision="bf16" \
--report_to="wandb" \
--checkpointing_steps=1000 \
--output_dir="/home/image_data/checkpoints/${PROJECT}/" \
--allow_tf32 \
--model_max_length 512 \
--use_image_num 0 \
--snr_gamma 5.0 \
--use_ema \
--ema_start_step 0 \
--cfg 0.1 \
--enable_tiling \
--tile_overlap_factor 0.125 \
--use_rope \
--noise_offset 0.02 \
--resume_from_checkpoint="latest" \
--enable_stable_fp32 \
--ema_decay 0.999 \
--speed_factor 1.0 \
--drop_short_ratio 1.0 \
--sp_size 8 \
--train_sp_batch_size 1
@@ -1,59 +0,0 @@
export PROJECT=$PROJECT_NAME
WEIGHT_PATH="/home/opensora/pre_weights/"
env
#export WANDB_MODE='offline'
export HCCL_OP_BASE_FFTS_MODE_ENABLE=TRUE
export HCCL_ALGO="level0:NA;level1:H-D_R"
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
accelerate launch \
--config_file scripts/accelerate_configs/multi_node_example_by_deepspeed.yaml \
--machine_rank=${MACHINE_RANK} \
--main_process_ip=${MAIN_PROCESS_IP_VALUE} \
opensora/train/train_t2v_diffusers.py \
--model OpenSoraT2V-ROPE-L/122 \
--text_encoder_name ${WEIGHT_PATH}/google/mt5-xxl \
--cache_dir "../cache_dir" \
--dataset t2v \
--data "scripts/train_data/merge_data_on_npu.txt" \
--ae CausalVAEModel_D4_4x8x8 \
--ae_path "${WEIGHT_PATH}/test140k/" \
--sample_rate 1 \
--num_frames ${NUM_FRAME} \
--max_height 720 \
--max_width 1280 \
--interpolation_scale_t 1.0 \
--interpolation_scale_h 1.5 \
--interpolation_scale_w 2.0 \
--attention_mode xformers \
--gradient_checkpointing \
--train_batch_size=1 \
--dataloader_num_workers 8 \
--gradient_accumulation_steps=1 \
--max_train_steps=1000000 \
--learning_rate=1e-4 \
--lr_scheduler="constant" \
--seed=10 \
--lr_warmup_steps=500 \
--mixed_precision="bf16" \
--report_to="wandb" \
--checkpointing_steps=1000 \
--output_dir="/home/image_data/checkpoints/${PROJECT}/" \
--allow_tf32 \
--model_max_length 512 \
--use_image_num 0 \
--snr_gamma 5.0 \
--use_ema \
--ema_start_step 0 \
--cfg 0.1 \
--enable_tiling \
--tile_overlap_factor 0.125 \
--use_rope \
--noise_offset 0.02 \
--resume_from_checkpoint="latest" \
--enable_stable_fp32 \
--ema_decay 0.999 \
--speed_factor 1.0 \
--drop_short_ratio 1.0 \
--sp_size 8 \
--train_sp_batch_size 1