Skip to content

Commit

Permalink
Support unconstrained VQA finetuning
Browse files Browse the repository at this point in the history
  • Loading branch information
yangapku committed Sep 21, 2022
1 parent 3697e05 commit faa2a61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run_scripts/vqa/evaluate_vqa_unconstrained.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# which does not use a fixed candidate answer set (trainval_ans2label.pkl).
# For more details about the unconstrained finetuning, refer to Line 62-68 in train_vqa_distributed.sh

# Usage: bash evaluate_vqa_unconstrained.sh ${split} ${ckpt_path}

# The port for communication. Note that if you want to run multiple tasks on the same machine,
# you need to specify different port numbers.
export MASTER_PORT=8082
Expand All @@ -15,7 +17,7 @@ bpe_dir=../../utils/BPE
split=$1

data=../../dataset/vqa_data/vqa_${split}.tsv
path=../../checkpoints/vqa_large_best.pt
path=$2 # please speficy your path of unconstrainedly finetuned checkpoint
result_path=../../results/vqa_${split}_unconstrained
selected_cols=0,5,2,3,4

Expand Down

0 comments on commit faa2a61

Please sign in to comment.