#!/bin/bash

# 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}"

INPUT=/data1/dongying/Mono3d/G1M3/cases_feishu_results/torchscript_python_300w_newdata-cncap/6676060198_20260109113210_2026-01-09_11-33-53_voice-顿挫/merge_tracking.json
INPUT_DIR=$(dirname "$INPUT")

python tools/temporal_analysis/evaluate_temporal_stability.py \
    --input "$INPUT" \
    --class-id 0 \
    --track-ids 3 \
    --output "$INPUT_DIR/stability_car_123.json" \
    --plots

# id: 2, 41, 102
# id: 2, 33, 131
