Skip to content

[Question] How to eval textqa #90

@fanminshi

Description

@fanminshi

Question

I looked at the eval script

CONV="conv_template"
CKPT_NAME="your_ckpt_name"
CKPT="checkpoints/${CKPT_NAME}"
EVAL="eval"
deepspeed moellava/eval/model_vqa_loader.py \
    --model-path ${CKPT} \
    --question-file ${EVAL}/textvqa/llava_textvqa_val_v051_ocr.jsonl \
    --image-folder ${EVAL}/textvqa/train_images \
    --answers-file ${EVAL}/textvqa/answers/${CKPT_NAME}.jsonl \
    --temperature 0 \
    --conv-mode ${CONV}

python3 -m moellava.eval.eval_textvqa \
    --annotation-file ${EVAL}/textvqa/TextVQA_0.5.1_val.json \
    --result-file ${EVAL}/textvqa/answers/${CKPT_NAME}.jsonl

what's ${CKPT_NAME}.jsonl in ${EVAL}/textvqa/answers/${CKPT_NAME}.jsonl ?

My ./textvqa/answers/ has llava-v1.5-13b.jsonl but my CKPT_NAME is llavaphi-2.7b-finetune-moe. Should I use llava-v1.5-13b.jsonl for eval instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions