run_reformat_pbrt.sh 497 B

12345678910111213141516
  1. #! /bin/bash
  2. tungsten_folder='tungsten-scenes'
  3. pbrt_folder='tungsten-pbrt-scenes'
  4. prefix='p3d_'
  5. ext='png'
  6. for subfolder in $(ls ${tungsten_folder})
  7. do
  8. tungsten_subfolder=${tungsten_folder}/${subfolder}
  9. pbrt_subfolder=${pbrt_folder}/${subfolder}
  10. python utils/reformat_pbrt.py --tungsten ${tungsten_subfolder}/scene.json --pbrt ${pbrt_subfolder}/scene.pbrt --outfile ${pbrt_subfolder}/${prefix}${subfolder}.pbrt --resolution 1000,1000 --image_name ${prefix}${subfolder}.${ext}
  11. done