Upload colmap_matcher.sh with huggingface_hub
Browse files- colmap_matcher.sh +13 -1
colmap_matcher.sh
CHANGED
|
@@ -15,6 +15,7 @@ camera_name="$9"
|
|
| 15 |
exp_folder_colmap="${exp_folder}/colmap_${exp_id}"
|
| 16 |
rgb_dir=$(awk -F, 'NR==2 { split($2,a,"/"); print a[1]; exit }' "$rgb_csv")
|
| 17 |
rgb_path="${sequence_path}/${rgb_dir}"
|
|
|
|
| 18 |
|
| 19 |
# Get calibration model
|
| 20 |
read -r calibration_model more_ <<< $(python3 Baselines/colmap/get_calibration.py "$calibration_yaml" "$camera_name")
|
|
@@ -150,6 +151,17 @@ then
|
|
| 150 |
--database_path ${database} \
|
| 151 |
--FeatureMatching.use_gpu ${use_gpu}
|
| 152 |
|
| 153 |
-
pixi run -e lightglue python3 Baselines/colmap/feature_matcher.py --database ${database} --rgb_path ${rgb_path} --rgb_csv ${rgb_csv}
|
| 154 |
fi
|
| 155 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
exp_folder_colmap="${exp_folder}/colmap_${exp_id}"
|
| 16 |
rgb_dir=$(awk -F, 'NR==2 { split($2,a,"/"); print a[1]; exit }' "$rgb_csv")
|
| 17 |
rgb_path="${sequence_path}/${rgb_dir}"
|
| 18 |
+
distance_matrix="${sequence_path}/D_binary.npy"
|
| 19 |
|
| 20 |
# Get calibration model
|
| 21 |
read -r calibration_model more_ <<< $(python3 Baselines/colmap/get_calibration.py "$calibration_yaml" "$camera_name")
|
|
|
|
| 151 |
--database_path ${database} \
|
| 152 |
--FeatureMatching.use_gpu ${use_gpu}
|
| 153 |
|
| 154 |
+
pixi run -e lightglue python3 Baselines/colmap/feature_matcher.py --database ${database} --rgb_path ${rgb_path} --rgb_csv ${rgb_csv} --distance_matrix ${distance_matrix}
|
| 155 |
fi
|
| 156 |
|
| 157 |
+
# # LightGlue Feature Matcher
|
| 158 |
+
# if [ "${matcher_type}" == "custom" ]
|
| 159 |
+
# then
|
| 160 |
+
# # colmap exhaustive_matcher \
|
| 161 |
+
# # --database_path ${database} \
|
| 162 |
+
# # --FeatureMatching.use_gpu ${use_gpu}
|
| 163 |
+
# rm -rf ${database}
|
| 164 |
+
# cp ${sequence_path}/colmap_database.db ${database}
|
| 165 |
+
|
| 166 |
+
# pixi run -e lightglue python3 Baselines/colmap/feature_matcher.py --database ${database} --rgb_path ${rgb_path} --rgb_csv ${rgb_csv} --distance_matrix ${distance_matrix}
|
| 167 |
+
# fi
|