Closed tj-zhu closed 1 year ago
@saxenasaurabh may have more context on this.
@chentingpc Thank you! @saxenasaurabh Could you please help on this? Thank you very much!
Here is an example caption output with 32.8 BLEU-4: https://storage.googleapis.com/pix2seq/others/coco_caption_result_example.json. Could you try to validate if you can get similar metric? If you do get similar result, then it may be related to the model inference, otherwise the evaluation process may be the cause.
@chentingpc Thank you for providing the file! I got BLEU-4 score of 33.6
for the file you just provided. So I think the evaluation process is fine. It might be the model inference process causing the issue.
Could it be the configs (listed in the first comment of this issue) are off, or the model checkpoint (vit_b_640x640-ckpt-93324
) is not right?
Can you try to run the inference with top_k=1?
also, to double check if the checkpoint is the culprit you may use it for running another task and see if the results check out.
@chentingpc Thank you! I got BLEU-4 score of 35.3
using top_k=1
. I'll close the issue. Again, thank you very much for your help!
Hi there, first of all, thank you very much for sharing the code!
I tried the following command in README.md to evaluate model performance on image captioning task.
The checkpoint used is
vit_b_640x640-ckpt-93324
, and I used the pycocoevalcap to evaluate the results with coco captions 2017 validation dataset.The metric I got for BLEU-4 score is only
14.1
. In Table 1 of the paper, the score forPix2Seq v2 multi-tasks (640*640)
for Captioning task is34.3
. I am wondering if I did anything wrong. Could you please let me know how to resolve this?Thank you in advance!
Here are the task configs: