-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdetect.sh
More file actions
29 lines (21 loc) · 866 Bytes
/
detect.sh
File metadata and controls
29 lines (21 loc) · 866 Bytes
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
#!/bin/bash
# 用法: bash detect.sh <path>
if [ -z "$1" ]; then
echo "Usage: bash $0 <path>"
exit 1
fi
WORK_DIR="$1"
IH_LABELS="speech,music"
# # === Step 1: ina detector ===
echo "[INFO] Running ina detector..."
python detect_all.py detect_all --base_root "$WORK_DIR" --detector ina --ih_labels "$IH_LABELS"
# # === Step 2: yamnet detector ===
echo "[INFO] Running yamnet detector..."
python detect_all.py detect_all --base_root "$WORK_DIR" --detector yamnet --ih_labels "$IH_LABELS"
# === Step 3: panns detector ===
echo "[INFO] Running panns detector..."
python detect_all.py detect_all --base_root "$WORK_DIR" --detector panns --ih_labels "$IH_LABELS"
# # === Step 4: fuse results ===
echo "[INFO] Fusing results..."
python detect_all.py fuse_all --base_root "$WORK_DIR" --ih_labels "$IH_LABELS"
echo "[INFO] All evaluations finished successfully."