for x in `ls /data/cameron/re10k/`; 
do 
    outdir="/data/cameron/monocular_ests/re10k/$x" 
    if [ -d $outdir ]; then
        echo "$outdir is a directory"
    else
        echo "need to do" $x
        CUDA_VISIBLE_DEVICES=1 python scripts/preprocess_imgdir.py -i /data/cameron/re10k/$x -o $outdir
        CUDA_VISIBLE_DEVICES=1 python scripts/pkg_data.py -i $outdir
    fi
done
