Skip to content

Commit dab7c53

Browse files
authored
Create mme.sh
1 parent 8ba2dc1 commit dab7c53

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

scripts/v1_5/eval/llava/mme.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
CONV="conv_template"
4+
CKPT_NAME="your_ckpt_name"
5+
CKPT="checkpoints/${CKPT_NAME}"
6+
EVAL="eval"
7+
python3 -m moellava.eval.model_vqa_loader \
8+
--model-path ${CKPT} \
9+
--question-file ${EVAL}/MME/llava_mme.jsonl \
10+
--image-folder ${EVAL}/MME/MME_Benchmark_release_version \
11+
--answers-file ${EVAL}/MME/answers/${CKPT_NAME}.jsonl \
12+
--temperature 0 \
13+
--conv-mode ${CONV}
14+
15+
cd ${EVAL}/MME
16+
17+
python convert_answer_to_mme.py --experiment $CKPT_NAME
18+
19+
cd eval_tool
20+
21+
python calculation.py --results_dir answers/$CKPT_NAME

0 commit comments

Comments
 (0)