-
Notifications
You must be signed in to change notification settings - Fork 2
/
test_all_moda.sh
executable file
·53 lines (37 loc) · 2.01 KB
/
test_all_moda.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
46
47
48
49
50
51
52
# @Author: mac
# @Date: 2024-05-09 23:13:16
# @Last Modified by: mac
# @Last Modified time: 2024-06-12 10:35:40
# Check if Python is installed
if command -v python3 &>/dev/null; then
python_cmd="python3"
elif command -v python &>/dev/null; then
python_cmd="python"
else
echo "Error: Python is not installed. Please install Python to run this script."
exit 1
fi
# cd
# Get the directory of the current script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# DIR="$PWD"
# Navigate to the directory of the script
cd "$DIR"
# Get the directory path of the YAML file
YAML_DIR="$DIR/configs/path.yaml"
S1_JSON_DIR="$DIR/configs/config_s1.json"
S2_JSON_DIR="$DIR/configs/config_s2.json"
$python_cmd ./benchmarks/1_behavior_cls/uwb/test_uwb_s1.py --path_dir "$YAML_DIR" --config_dir "$S1_JSON_DIR"
$python_cmd ./benchmarks/1_behavior_cls/uwb/test_uwb_s2.py --path_dir "$YAML_DIR" --config_dir "$S2_JSON_DIR"
$python_cmd ./benchmarks/1_behavior_cls/immu/test_immu_s0.py --path_dir "$YAML_DIR"
$python_cmd ./benchmarks/1_behavior_cls/immu/test_immu_s1.py --path_dir "$YAML_DIR" --config_dir "$S1_JSON_DIR"
$python_cmd ./benchmarks/1_behavior_cls/immu/test_immu_s2.py --path_dir "$YAML_DIR" --config_dir "$S2_JSON_DIR"
$python_cmd ./benchmarks/1_behavior_cls/uwb_hd/test_uwb_hd_s1.py --path_dir "$YAML_DIR" --config_dir "$S1_JSON_DIR"
$python_cmd ./benchmarks/1_behavior_cls/uwb_hd/test_uwb_hd_s2.py --path_dir "$YAML_DIR" --config_dir "$S2_JSON_DIR"
$python_cmd ./benchmarks/1_behavior_cls/uwb_hd_akl/test_uwb_hd_akl_s1.py --path_dir "$YAML_DIR" --config_dir "$S1_JSON_DIR"
$python_cmd ./benchmarks/1_behavior_cls/uwb_hd_akl/test_uwb_hd_akl_s2.py --path_dir "$YAML_DIR" --config_dir "$S2_JSON_DIR"
# S-RGB and M-RGB evaluation
# $python_cmd ./benchmarks/1_behavior_cls/rgb/eval/eval_srgb_s2.py --path_dir "$YAML_DIR" --config_dir "$S2_JSON_DIR"
# $python_cmd ./benchmarks/1_behavior_cls/rgb/eval/eval_mrgb_s2.py --path_dir "$YAML_DIR" --config_dir "$S2_JSON_DIR"
echo "-------TESTING HAS BEEN COMPLETED------"
sleep 36000