template_x=${template_x:-template14} template_y=${template_y:-template16} for i in {15..17}; do if [ -f "test_input/img${i}.png" ]; then img_file="test_input/img${i}.png" elif [ -f "test_input/img${i}.jpg" ]; then img_file="test_input/img${i}.jpg" else echo "Warning: test_input/img${i} not found." continue fi python real2render.py "$img_file" -t template/${template_x}.png -t2 template/${template_y}.png -o test_output/img${i}_${template_x}_${template_y}.png done