bev-project/archive_scripts/quick_inference_test.sh

38 lines
835 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 快速测试推理脚本只推理1个样本
export PATH=/opt/conda/bin:$PATH
echo "=================================================="
echo "快速测试推理脚本"
echo "推理1个样本验证功能"
echo "=================================================="
echo ""
# 检查checkpoint
if [ ! -f "runs/run-326653dc-74184412/epoch_19.pth" ]; then
echo "❌ epoch_19.pth不存在"
exit 1
fi
echo "✅ Checkpoint文件存在"
echo ""
# 快速测试只推理1个样本
/opt/conda/bin/python inference_and_visualize.py \
--samples 1 \
--output-dir inference_test \
--show-score-thr 0.3
echo ""
echo "=================================================="
echo "测试完成!检查输出:"
echo " ls -lh inference_test/"
echo "=================================================="