#!/bin/bash

# 基础模型（zero-shot）权重路径
BASE_CKPT="../inits/ovdino/ovdino_swint_og-coco50.6_lvismv39.4_lvis32.2.pth"

# 配置文件所在目录
CONFIG_DIR="projects/ovdino/configs/24ep/eval/zeroshot"

# 数据集名列表
DATASETS=("artaxor" "dior" "neudet" "uodd")

# 输出根目录
OUTPUT_ROOT="../wkdrs"

# eval 脚本路径
EVAL_SCRIPT="scripts/eval.sh"

for dataset in "${DATASETS[@]}"; do
    config_file="$CONFIG_DIR/ovdino_swin_tiny224_bert_base_eval_${dataset}.py"
    output_dir="$OUTPUT_ROOT/eval_${dataset}_zeroshot"

    echo "🔍 Zero-shot evaluating on $dataset..."
    echo "Config: $config_file"
    echo "Output: $output_dir"

    bash $EVAL_SCRIPT "$config_file" "$BASE_CKPT" "$output_dir"
done
