Sebastian Cavada
commited on
Commit
·
caf7e02
1
Parent(s):
4987d7c
adding gs training
Browse files- fit.sh +1 -0
- prepare_data_gs.sh +1 -0
- run_core.sh +9 -6
- run_template.sh +16 -0
fit.sh
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
ns-train splatfacto --pipeline.model.cull_alpha_thresh=0.005 --pipeline.model.continue_cull_post_densification=False --data ./global_OG/processed_data_gsplat --machine.num-devices 4 --pipeline.datamanager.train-num-rays-per-batch 2048
|
prepare_data_gs.sh
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
ns-process-data images --skip-colmap --data ./global_OG/images --colmap-model-path ./global_OG/core_hydro_entrance_palms_knowledge_center_front_hydro_conn_boulevard_library --output_dir ./global_OG/processed_data_gsplat --skip_image_processing
|
run_core.sh
CHANGED
@@ -4,14 +4,17 @@ if [ ! -d "./global" ]; then
|
|
4 |
mkdir -p ./global/campus_core
|
5 |
fi
|
6 |
|
7 |
-
echo "Running Feature Extractor"
|
8 |
-
colmap feature_extractor --database_path ./global/database_core.db --image_path ./images --ImageReader.single_camera_per_folder 1
|
|
|
|
|
9 |
|
10 |
-
echo "Running feature matching..."
|
11 |
-
colmap matches_importer --database_path ./global/database_core.db --match_list_path ./images/campus_core/image_pairs_exhaustive.txt
|
12 |
|
13 |
-
echo "Reconstructing 3D model..."
|
14 |
-
|
|
|
15 |
|
16 |
echo "Showing result"
|
17 |
colmap gui --import_path ./global/campus_core/0 --database_path ./global/database_core.db --image_path ./images
|
|
|
4 |
mkdir -p ./global/campus_core
|
5 |
fi
|
6 |
|
7 |
+
# echo "Running Feature Extractor"
|
8 |
+
# colmap feature_extractor --database_path ./global/database_core.db --image_path ./images --ImageReader.single_camera_per_folder 1 \
|
9 |
+
# --ImageReader.default_focal_length_factor 0.5 --ImageReader.camera_model OPENCV \
|
10 |
+
# --image_list_path ./images/campus_core/image_list.txt
|
11 |
|
12 |
+
# echo "Running feature matching..."
|
13 |
+
# colmap matches_importer --database_path ./global/database_core.db --match_list_path ./images/campus_core/image_pairs_exhaustive.txt
|
14 |
|
15 |
+
# echo "Reconstructing 3D model..."
|
16 |
+
# # colmap mapper --database_path ./global/database_core.db --image_path ./images --output_path ./global/campus_core --image_list_path ./images/campus_core/image_list.txt
|
17 |
+
# glomap mapper --database_path ./global/database_core.db --image_path ./images --output_path ./global/campus_core
|
18 |
|
19 |
echo "Showing result"
|
20 |
colmap gui --import_path ./global/campus_core/0 --database_path ./global/database_core.db --image_path ./images
|
run_template.sh
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# RUN RECONSTRUCTION
|
2 |
+
|
3 |
+
echo "Running Feature Extractor"
|
4 |
+
colmap feature_extractor --database_path ./global/database_core.db --image_path ./images --ImageReader.single_camera_per_folder 1 --ImageReader.default_focal_length_factor 0.5 --ImageReader.camera_model OPENCV
|
5 |
+
|
6 |
+
echo "Running feature matching..."
|
7 |
+
colmap matches_imporer --database_path ./global/database_core.db --match_list_path ./images/campus_knowledge_center/image_pairs_exhaustive.txt
|
8 |
+
|
9 |
+
echo "Reconstructing 3D model..."
|
10 |
+
colmap mapper --database_path ./global/database_core.db --image_path ./images --output_path ./campus_palms --image_list_path ./images/campus_palms/image_list.txt
|
11 |
+
|
12 |
+
ENDIN=$(date +"%H:%M:%S")
|
13 |
+
curl -X POST -H 'Content-Type: application/json' -d "{\"chat_id\": \"777722458\", \"text\": \"FINE COLMAP\", \"disable_notification\": true}" https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage
|
14 |
+
|
15 |
+
echo "Showing result"
|
16 |
+
colmap gui --import_path ./campus_palms/1 --database_path ./global/database_core.db --image_path ./images
|