Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextVQA accuracy #29

Open
crx15215682925 opened this issue Nov 2, 2023 · 3 comments
Open

TextVQA accuracy #29

crx15215682925 opened this issue Nov 2, 2023 · 3 comments

Comments

@crx15215682925
Copy link

Hello, I have got the json file of TextVQA, can you tell me how to get the accuracy? Only the eval code for Textcaps is currently provided.

@soonchangAI
Copy link

soonchangAI commented Nov 11, 2023

For TextVQA validation accuracy:

2 GPU:

python -m torch.distributed.launch --nproc_per_node 2 TAP/tools/run.py --tasks vqa --datasets m4c_textvqa --model m4c_split \ --config $config \ --run_type val \ --save_dir $save_directory \ --resume_file $model.ckpt \ training_parameters.distributed True
single GPU:

python TAP/tools/run.py --tasks vqa --datasets m4c_textvqa --model m4c_split \ --config $config \ --run_type val \ --save_dir $save_directory \ --resume_file $model.ckp
For TextVQA test accuracy, the test set label is not publicly release, So:

  1. Predict and save as JSON

python TAP/tools/run.py --tasks vqa --datasets m4c_stvqa --model m4c_split \ --config $config \ --run_type inference --evalai_inference 1 \ --save_dir $model.ckpt

  1. Upload to https://eval.ai/web/challenges/challenge-page/874/ for accuracy calculation

@seuppp
Copy link

seuppp commented Dec 9, 2023

Hi @soonchangAI, thanks for your reply.

Now I find the address provided in data/README.md is invalid. Could you please provide me with a new dataset download address? Thanks.

@seuppp
Copy link

seuppp commented Dec 9, 2023

Hi @crx15215682925

I find the address provided in data/README.md is invalid. Could you please provide me with a new dataset download address? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants