Closed soonchangAI closed 6 months ago
I faced following error when evaluating on SAL TextVQA
assert self.PAD_IDX != self.answer_vocab.UNK_INDEX AssertionError
It ran without error when I change the vocab file from fixed_answer_vocab_textvqa_5k.txt to ST-VQA's fixed_answer_vocab_stvqa_5k.txt
fixed_answer_vocab_textvqa_5k.txt
fixed_answer_vocab_stvqa_5k.txt
I observe the main difference is the provided TextVQA vocab file lacks a few tokens:
<pad> <s> </s> <unk>
These two dictionary files are used in the M4C project. Our project is modified based on M4C. During the actual running process, these two files are not used, so you can directly comment out this line of code.
I faced following error when evaluating on SAL TextVQA
It ran without error when I change the vocab file from
fixed_answer_vocab_textvqa_5k.txt
to ST-VQA'sfixed_answer_vocab_stvqa_5k.txt
I observe the main difference is the provided TextVQA vocab file lacks a few tokens: