#!/bin/bash

# YOLOv5-3D 快速评测脚本 - 仅评测3D
# 使用方法: sh eval_tools/run_eval_3d_only.sh


# Set PYTHONPATH to project root for module imports
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
export PYTHONPATH="${PROJECT_ROOT}:${PYTHONPATH}"
DET_PATH="/data1/dongying/Mono3d/G1M3/300w/txt_results"

GT_PATH="/data1/dongying/Mono3d/G1M3/labels"
OUTPUT_DIR="eval_results/3d_only_$(date +%Y%m%d_%H%M%S)"

python eval_tools/core/eval.py \
    --det-path $DET_PATH \
    --gt-path $GT_PATH \
    --output-dir $OUTPUT_DIR \
    --eval-3d-only \
    --num-workers 8 \
    --img-width 1920 \
    --img-height 1080

echo "3D评测完成! 结果: $OUTPUT_DIR"
