device='2'
model='llava_v1.5_7B_lht'
# categories=("privacy" "bias" "toxicity" "hallucination" "legality")
categories='adversarial'

validate_dataset='POPE_coco'
probe_dataset='POPE_train_I+Q;C_p2+Q_simple'
# categories=("legality")

num_heads_list=(16 24 32 40 48 56)
alpha_list=(3 5 7)

for num_head in "${num_heads_list[@]}"; do
  # 内层循环
    for alpha in "${alpha_list[@]}"; do
        echo $num_head $alpha
        python inference_iti.py --model $model \
                        --validate_dataset $validate_dataset \
                        --probe_dataset $probe_dataset \
                        --categories $categories \
                        --log_file "logs/evaluate-${category}_${model}.log" \
                        --device $device \
                        --num_heads $num_head \
                        --alpha $alpha \
                        --subfix '_train_I+Q;C_p2+Q_simple_end31' \
                        --use_center_of_mass
        subfix="_${num_head}_${alpha}_train_I+Q;C_p2+Q_simple_end31"
        python eval/pope_eval.py --model $model \
                        --dimensions $categories \
                        --log_file "logs/evaluate-${category}_${model}.log" \
                        --device $device \
                        --validate_dataset $validate_dataset \
                        --subfix $subfix
    done
done