#!/bin/bash

DATA_NAME="mmiasd_base"
TEMP=0.0
CURRENT_TIME=$(date +"%Y%m%d%H%M%S")
FILE_NAME="llava-v1.6-13b_${CURRENT_TIME}"

export PYTHONPATH="$PYTHONPATH:$PWD/vlms"

python -m vlms.llava.eval.llava_vqa_updbench \
    --model-path liuhaotian/llava-v1.6-vicuna-13b \
    --data-name ${DATA_NAME} \
    --answers-file ./output/iasd/answers/llava1.6_13b/base/${DATA_NAME}/${FILE_NAME}.jsonl \
    --single-pred-prompt \
    --temperature ${TEMP} \
    --prompt_id 0 \
    --conv-mode vicuna_v1

mkdir -p output/iasd/answers_upload/llava1.6_13b/base/${DATA_NAME}

python -m scripts.convert_mmbench_for_submission \
    --data-name ${DATA_NAME} \
    --result-dir ./output/iasd/answers/llava1.6_13b/base/${DATA_NAME} \
    --upload-dir ./output/iasd/answers_upload/llava1.6_13b/base/${DATA_NAME} \
    --experiment ${FILE_NAME}