# python ./methods/VCD/experiments/eval/object_hallucination_vqa_llava.py \
#     --model-path /code/pretrained_models/llava-v1.5-7b\
#     --question-file ./data/pope/coco/coco_pope_random.json \
#     --image-folder ./data/pope/coco/images \
#     --answers-file ./outputs/pope/baseline/coco_random_sample.jsonl \
#     --cd_alpha 1 \
#     --cd_beta 0.1 \
#     --noise_step 999 \
#     --seed 324418


# datasets=(coco aokvqa gqa)
# types=(random popular adversarial)

# for dataset in ${datasets[@]}; do
#   if [[ $dataset == 'coco' || $dataset == 'aokvqa' ]]; then
#     image_folder=./data/pope/coco/images
#   else
#     image_folder=./data/pope/gqa/images
#   fi

#    for type in ${types[@]}; do
#     python ./methods/VCD/experiments/eval/object_hallucination_vqa_llava.py \
#       --model-path /code/pretrained_models/llava-v1.5-7b \
#       --question-file ./data/pope/${dataset}/${dataset}_pope_${type}.json \
#       --image-folder ${image_folder} \
#       --answers-file ./outputs/pope/vcd/${dataset}_${type}_greedy.jsonl \
#       --use_cd \
#       --cd_alpha 1 \
#       --cd_beta 0.1 \
#       --noise_step 999 \
#       --seed 324418
#   done
# done

# datasets=(coco aokvqa gqa)
# types=(random popular adversarial)

# for dataset in ${datasets[@]}; do
#   if [[ $dataset == 'coco' || $dataset == 'aokvqa' ]]; then
#     image_folder=./data/pope/coco/images
#   else
#     image_folder=./data/pope/gqa/images
#   fi

#    for type in ${types[@]}; do
#     python ./methods/VCD/experiments/eval/object_hallucination_vqa_llava.py \
#       --model-path /code/pretrained_models/llava-v1.5-13b \
#       --question-file ./data/pope/${dataset}/${dataset}_pope_${type}.json \
#       --image-folder ${image_folder} \
#       --answers-file ./outputs/pope/vcd/13b_${dataset}_${type}_sample.jsonl \
#       --use_cd \
#       --cd_alpha 1 \
#       --cd_beta 0.1 \
#       --noise_step 700 \
#       --seed 324418
#   done
# done


# datasets=(coco aokvqa gqa)
# types=(random popular adversarial)

# for dataset in ${datasets[@]}; do
#   if [[ $dataset == 'coco' || $dataset == 'aokvqa' ]]; then
#     image_folder=./data/pope/coco/images
#   else
#     image_folder=./data/pope/gqa/images
#   fi

#    for type in ${types[@]}; do
#     python ./methods/VCD/experiments/eval/object_hallucination_vqa_llava.py \
#       --model-path /code/pretrained_models/llava-v1.5-7b \
#       --question-file ./data/pope/${dataset}/${dataset}_pope_${type}.json \
#       --image-folder ${image_folder} \
#       --answers-file ./outputs/pope/pure_cd/vcd_${dataset}_${type}_greedy.jsonl \
#       --use_cd \
#       --cd_alpha 1 \
#       --cd_beta 0.1 \
#       --noise_step 700 \
#       --seed 324418
#   done
# done


python ./methods/VCD/experiments/eval/object_hallucination_vqa_llava.py \
    --model-path /code/pretrained_models/llava-v1.5-7b\
    --question-file ./data/pope/coco/coco_pope_random.json \
    --image-folder ./data/pope/coco/images \
    --answers-file ./outputs/pope/baseline/coco_random_sample.jsonl \
    --cd_alpha 1 \
    --cd_beta 0.1 \
    --noise_step 999 \
    --seed 324418