| | version=$1 |
| | seed=123 |
| | name=dynamicrafter_$1_seed${seed} |
| |
|
| | ckpt=checkpoints/dynamicrafter_$1_v1/model.ckpt |
| | config=configs/inference_$1_v1.0.yaml |
| |
|
| | prompt_dir=prompts/$1/ |
| | res_dir="results" |
| |
|
| | if [ "$1" == "256" ]; then |
| | H=256 |
| | FS=3 |
| | elif [ "$1" == "512" ]; then |
| | H=320 |
| | FS=24 |
| | elif [ "$1" == "1024" ]; then |
| | H=576 |
| | FS=10 |
| | else |
| | echo "Invalid input. Please enter 256, 512, or 1024." |
| | exit 1 |
| | fi |
| |
|
| | if [ "$1" == "256" ]; then |
| | CUDA_VISIBLE_DEVICES=2 python3 scripts/evaluation/inference.py \ |
| | --seed ${seed} \ |
| | --ckpt_path $ckpt \ |
| | --config $config \ |
| | --savedir $res_dir/$name \ |
| | --n_samples 1 \ |
| | --bs 1 --height ${H} --width $1 \ |
| | --unconditional_guidance_scale 7.5 \ |
| | --ddim_steps 50 \ |
| | --ddim_eta 1.0 \ |
| | --prompt_dir $prompt_dir \ |
| | --text_input \ |
| | --video_length 16 \ |
| | --frame_stride ${FS} |
| | else |
| | CUDA_VISIBLE_DEVICES=2 python3 scripts/evaluation/inference.py \ |
| | --seed ${seed} \ |
| | --ckpt_path $ckpt \ |
| | --config $config \ |
| | --savedir $res_dir/$name \ |
| | --n_samples 1 \ |
| | --bs 1 --height ${H} --width $1 \ |
| | --unconditional_guidance_scale 7.5 \ |
| | --ddim_steps 50 \ |
| | --ddim_eta 1.0 \ |
| | --prompt_dir $prompt_dir \ |
| | --text_input \ |
| | --video_length 16 \ |
| | --frame_stride ${FS} \ |
| | --timestep_spacing 'uniform_trailing' --guidance_rescale 0.7 --perframe_ae |
| | fi |
| |
|
| |
|
| | |
| | |
| | |