forked from youmi-zym/GO-SLAM
-
Notifications
You must be signed in to change notification settings - Fork 1
/
evaluate_on_replica.sh
executable file
·45 lines (34 loc) · 1000 Bytes
/
evaluate_on_replica.sh
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
#!/bin/bash
MODE=$1
EXPNAME=$2
OUT_DIR=${pwd}/out/replica
scenes="office0 office1 office2 office3 office4 room0 room1 room2"
echo "Start evaluating on Replica dataset..."
for sc in ${scenes}
do
echo Running on $sc ...
if [[ $MODE == "mono" ]]
then
python run.py configs/Replica/${sc}_mono.yaml --device cuda:0 --mode $MODE --output ${OUT_DIR}/${sc}/$EXPNAME
else
python run.py configs/Replica/${sc}.yaml --device cuda:0 --mode $MODE --output ${OUT_DIR}/${sc}/$EXPNAME
fi
echo $sc done!
done
echo Results for all scenes are:
SUMMARY=${OUT_DIR}/${sc}/${EXPNAME}/summary.txt
for sc in ${scenes}
do
echo
echo For ${sc}:
cat ${OUT_DIR}/${sc}/${EXPNAME}/metrics_traj.txt
echo
cat ${OUT_DIR}/${sc}/${EXPNAME}/metrics_mesh.txt
echo >> $SUMMARY
echo For ${sc}: >> $SUMMARY
cat ${OUT_DIR}/${sc}/${EXPNAME}/metrics_traj.txt >> $SUMMARY
echo >> SUMMARY
cat ${OUT_DIR}/${sc}/${EXPNAME}/metrics_mesh.txt >> $SUMMARY
done
echo All Done!
echo All Done! >> $SUMMARY