-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_evaluation_daemon.sh
executable file
·40 lines (35 loc) · 1.05 KB
/
run_evaluation_daemon.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
./build.sh
USERNAME=user
SRC_DIR="$PWD/daemon"
echo ""
if test "$#" -ne 4; then
echo "Expected three keywords: \$experiment_dir \$gt_dir \$num_gt_files \$pose_only"
echo ""
exit 1
fi
EXP_INPUT="$(cd "$(dirname "$1")"; pwd)/$(basename "$1")"
GT_INPUT="$(cd "$(dirname "$2")"; pwd)/$(basename "$2")"
NUM_VAL_SEQUENCES=$3
POSE_ONLY=$4
if [ ! -d "$EXP_INPUT" ]; then
echo "Input directory '$EXP_INPUT' does not exist! (exit)"
echo ""
exit 1
fi
if [ ! -d "$GT_INPUT" ]; then
echo "Output directory '$GT_INPUT' does not exist! (exit)"
echo ""
exit 1
fi
docker run\
--shm-size="2g"\
-v "$SRC_DIR":/home/$USERNAME/daemon\
-v "$EXP_INPUT":"/home/$USERNAME/experiments"\
-v "$GT_INPUT":"/home/$USERNAME/gt_data"\
--rm -it\
andoer/posetrack_eval_daemon \
python experiment_evaluation_daemon.py --num_validation_sequences=$NUM_VAL_SEQUENCES \
--toolkit_path=/opt/poseval/py \
--experiment_data_path="/home/$USERNAME/experiments" \
--gt_directory_path="/home/$USERNAME/gt_data" \
--eval_pose_only=$POSE_ONLY