Closed assjdshisio closed 2 years ago
When I run the M4C code, the val accuracy is different if the batch size could be not divisible by the size of val set. For instance, There are 5000 questions on the TextVQA val set, if the batch size is 100, the result is always same. If the batch size could not be divisible by 5000 (e.g. 128 or 64), the results are different. The final result is obtained by taking an average of accuracies of all batches. However, the last bacth size is smaller than others, which may lead to the error.
❓ Questions and Help