#!/bin/bash
#
# Analyze heading errors between two models
#
# Usage: bash eval_tools/heading_analysis/analyze_heading.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}"

python eval_tools/heading_analysis/analyze_heading_errors.py \
    --common-matches eval_results_common_match_comparison_smallset/common_matches_20260203_223240/common_matches.json \
    --model1-matches eval_results_common_match_comparison_smallset/mono3d/20260203_223240/detailed_3d_matches.json \
    --model2-matches eval_results_common_match_comparison_smallset/yolov5s-300w/20260203_223240/detailed_3d_matches.json \
    --model1-name "mono3d" \
    --model2-name "yolov5s-300w" \
    --output-dir heading_analysis_results_small \
    --bad-case-threshold 1.0
