项目文件夹

文件
2026-07-13 13:09:03 +08:00

49 行
1.0 KiB
Bash
可执行文件

#!/bin/bash
set -e
work_dir=output/debug_video
np=1
while [[ $# -gt 0 ]]; do
case $1 in
--np=*)
np="${1#*=}"
shift
;;
*.yaml)
config=$1
shift
;;
*)
other_args+=("$1")
shift
;;
esac
done
if [[ -z "$config" ]]; then
config="configs/sana_video_config/Sana_2000M_480px_AdamW_fsdp.yaml"
echo "No yaml file specified. Set to --config_path=$config"
fi
export DISABLE_XFORMERS=1
export DEBUG_MODE=1
cmd="TRITON_PRINT_AUTOTUNING=1 \
torchrun --nproc_per_node=$np --master_port=$((RANDOM % 10000 + 20000)) \
train_video_scripts/train_video_ivjoint.py \
--config_path=$config \
--work_dir=$work_dir \
--train.log_interval=1 \
--name=tmp \
--resume_from=latest \
--report_to=tensorboard \
--train.num_workers=0 \
--train.visualize=False \
--debug=true \
${other_args[@]}"
echo $cmd
eval $cmd