From d4deb7eef13d2a22a18f1eb577d1e4fde556b444 Mon Sep 17 00:00:00 2001 From: fhw Date: Fri, 19 Jul 2024 18:19:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AF=84=E4=BC=B0=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run_test.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 run_test.sh diff --git a/run_test.sh b/run_test.sh new file mode 100644 index 0000000..a5f4cb8 --- /dev/null +++ b/run_test.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Python 脚本路径 +PYTHON_SCRIPT="tools/test.py" + +# 固定的参数 +CONFIG_FILE="configs/body/2d_kpt_sview_rgb_img/topdown_heatmap/coco/hrnet_w32_coco_256x192.py" +CHECKPOINT_FILE="checkpoints/hrnet/hrnet_w48_coco_256x192-b9e0b3ab_20200708.pth" +WORK_DIR="test/hrnet_w48_256x192" + +# 执行 Python 脚本并传递固定的参数 +python $PYTHON_SCRIPT $CONFIG_FILE $CHECKPOINT_FILE --work-dir $WORK_DIR \ No newline at end of file