#!/bin/bash # 确保脚本有执行权限,可以使用命令: chmod +x run_render.sh # 定义起始和结束的i值 start=0 end=149 # 自定义要处理的项目列表 # custom_list=(0 1 4 12 157 265 281 392 491 577 578 600 683 742 744 814 874 913) # for i in "${custom_list[@]}" for i in $(seq $start $end) do # path= "/data_160TB/2021/yangkun/gha-gaussian/checkpoints/test/3_view_input_nersmble/checkpoint_allviews_data_new_2loss_1104_x16_36/frame_${i}" path=$(printf "/data_160TB/2021/yangkun/gha-gaussian/checkpoints/train/huawei/test/gc1-2/test%04d" $i) # path=$(printf "/data_160TB/2021/yangkun/gha-gaussian/checkpoints/train/huawei/test/semo2_112/frame_%04d" $i) if [ ! -d "$path" ]; then echo "Path not found for person_${i}, skipping to the next." continue fi echo "Running: python render_align.py -m $path" CUDA_VISIBLE_DEVICES=2 python render_align.py -m "$path" done # custom_list="0 1 4 12 157 265 281 392 491 577 578 600 683 742 744 814 874 913" # for i in $(seq 0 1000) # 假设循环范围在0到1000之间 # do # if echo "$custom_list" | grep -wq "$i"; then # path="/data_160TB/2021/yangkun/gaussian-splatting-main-copy/checkpoints/checkpoint_4viewer/test_paper/person_${i}" # echo "Running: python render.py -m $path" # python render.py -m "$path" # fi # done