Update colmap.sh

This commit is contained in:
Geralt_of_Rivia 2023-12-27 15:45:48 +08:00 committed by GitHub
parent c7478df53a
commit a69bfc6616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
workdir=$1 workdir=$1
datatype=$2 # blender, hypernerf, llff datatype=$2 # blender, hypernerf, llff
export CUDA_VISIBLE_DEVICES=1 export CUDA_VISIBLE_DEVICES=0
rm -rf $workdir/sparse_ rm -rf $workdir/sparse_
rm -rf $workdir/image_colmap rm -rf $workdir/image_colmap
python scripts/"$datatype"2colmap.py $workdir python scripts/"$datatype"2colmap.py $workdir
@ -22,4 +22,4 @@ colmap point_triangulator --database_path $workdir/colmap/database.db --image_pa
mkdir -p $workdir/colmap/dense/workspace mkdir -p $workdir/colmap/dense/workspace
colmap image_undistorter --image_path $workdir/colmap/images --input_path $workdir/colmap/sparse/0 --output_path $workdir/colmap/dense/workspace colmap image_undistorter --image_path $workdir/colmap/images --input_path $workdir/colmap/sparse/0 --output_path $workdir/colmap/dense/workspace
colmap patch_match_stereo --workspace_path $workdir/colmap/dense/workspace colmap patch_match_stereo --workspace_path $workdir/colmap/dense/workspace
colmap stereo_fusion --workspace_path $workdir/colmap/dense/workspace --output_path $workdir/colmap/dense/workspace/fused.ply colmap stereo_fusion --workspace_path $workdir/colmap/dense/workspace --output_path $workdir/colmap/dense/workspace/fused.ply