forked from microsoft/lamar-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun_process_navvis.sh
More file actions
executable file
·45 lines (34 loc) · 1.31 KB
/
run_process_navvis.sh
File metadata and controls
executable file
·45 lines (34 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
# Flags and arguments:
# --input_path : path to the raw phone data directory
# --capture_path : path to the capture directory (where files are saved)
# --sessions : list of sessions to be merged together into a single navvis session
# --num_workers_mesh: number of processing cores to be used for merging
# If you are using this script, please consider that it uses a lot of RAM since it has to load meshes.
if [ -z "$CAPTURE_DIR" ]; then
echo "[ERROR] CAPTURE_DIR env var not set. Make sure to export CAPTURE_DIR=/path/to/data/root."
exit 1
fi
if [ -z "$LOCATION" ]; then
echo "[ERROR] LOCATION env var not set. Make sure to export LOCATION=location."
exit 1
fi
CAPTURE="${CAPTURE_DIR}/${LOCATION}"
INPUT_DIR="${CAPTURE}/raw/navvis"
SESSIONS=("2023-07-13_16.10.09")
echo "You are running with parameters: "
echo " Capture: ${CAPTURE}"
echo " Input path: ${INPUT_DIR}"
echo " Session(s): ${SESSIONS[@]}"
read -p "Do you want to continue? (y/n): " answer
if [[ ! "$answer" =~ ^[Yy]$ ]]; then
echo "Execution aborted."
exit 1
fi
echo "Running pipeline_scans on $LOCATION ..."
python3 -m pipelines.pipeline_scans \
--input_path "$INPUT_DIR" \
--capture_path "$CAPTURE" \
--sessions "${SESSIONS[@]}" \
--num_workers 2
echo "Done, pipeline_scans.py process completed on $LOCATION."