for x in /data/DAVIS/1080p/*;
do 
    y=$(basename "$x")
    echo $x; 
    echo $y; 
    if [ ! -f "/data/cameron/monocular_ests/$y/pred_tracks_more.pt" ]; then
        # Run your command here
        python scripts/preprocess_imgdir.py -i $x -o /data/cameron/monocular_ests/$y
        echo "doing"
    else
        echo "File 'pred_tracks_more.pt' already exists in ${x}. Skipping command."
    fi
done
