for x in `ls /data/co3dhydrants/co3d/hydrants/hydrant`; 
do 
    outdir="/data/cameron/monocular_ests/hydrants_redo/$x" 
    if [ -d $outdir ]; then
        echo "$outdir is a directory"
    else
        echo "need to do" $x
        CUDA_VISIBLE_DEVICES=0 python scripts/preprocess_imgdir.py -i /data/co3dhydrants/co3d/hydrants/hydrant/$x/images -o $outdir
    fi
done
