fangbufang / SaL

Other
7 stars 0 forks source link

Error when evaluating SAL TextVQA #9

Closed soonchangAI closed 6 months ago

soonchangAI commented 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

I observe the main difference is the provided TextVQA vocab file lacks a few tokens:

<pad>
<s>
</s>
<unk>
fangbufang commented 6 months ago

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.