Spaces:
Running
Running
File size: 367 Bytes
a80d6bb |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#!/usr/bin/env bash
if [[ $# != 2 ]]; then
echo 'Usage: bash preprocess_megadepth.sh /path/to/megadepth /output/path'
exit
fi
export dataset_path=$1
export output_path=$2
mkdir $output_path
echo 0
ls $dataset_path/Undistorted_SfM | xargs -P 8 -I % sh -c 'echo %; python preprocess_scene.py --base_path $dataset_path --scene_id % --output_path $output_path' |