open-compass / open-compass/VLMEvalKit

socre 0 for GPT4o_20241120 model on CCOCR_DocParsing_TablePhotoEng

Open
#851 3 comments 0 reactions 1 assignee View on GitHub

@FangXinyu-0913 is already working on this.

Since Mar 17, 2025.

Dominant language
Python
Stars
4.4k
Forks
768
Avg merge
1d 10h
Merged PRs (30d)
17

Description

I test gpt4o_20241120 on CCOCR_DocParsing_TablePhotoEng. However, I find the score seems to be 0. Here is an example:
gt:

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n code\n \n left side label\n \n right side label\n \n dump die number\n
\n lla\n \n left\n \n left\n \n 11\n
\n llb\n \n left\n \n left\n \n 2\n
\n lra\n \n left\n \n right\n \n 1\n
\n lrb\n \n left\n \n right\n \n 2\n
\n rla\n \n right\n \n left\n \n 1\n
\n rlb\n \n right\n \n left\n \n 2\n
\n rra\n \n right\n \n right\n \n 1\n
\n rrb\n \n right\n \n right\n \n 2\n
\n a\n \n no label\n \n no label\n \n 1\n
\n b\n \n no label\n \n no label\n \n 2\n
\n\n

prediction:
Below is the HTML representation of the table depicted in the image using <tr> and <td> tags:\n\nhtml\n<table border=\"1\">\n <tr>\n <td>code</td>\n <td>left side label</td>\n <td>right side label</td>\n <td>dump die number</td>\n </tr>\n <tr>\n <td>lla</td>\n <td>left</td>\n <td>left</td>\n <td>1</td>\n </tr>\n <tr>\n <td>llb</td>\n <td>left</td>\n <td>left</td>\n <td>2</td>\n </tr>\n <tr>\n <td>lra</td>\n <td>left</td>\n <td>right</td>\n <td>1</td>\n </tr>\n <tr>\n <td>lrb</td>\n <td>left</td>\n <td>right</td>\n <td>2</td>\n </tr>\n <tr>\n <td>rla</td>\n <td>right</td>\n <td>left</td>\n <td>1</td>\n </tr>\n <tr>\n <td>rlb</td>\n <td>right</td>\n <td>left</td>\n <td>2</td>\n </tr>\n <tr>\n <td>rra</td>\n <td>right</td>\n <td>right</td>\n <td>1</td>\n </tr>\n <tr>\n <td>rrb</td>\n <td>right</td>\n <td>right</td>\n <td>2</td>\n </tr>\n <tr>\n <td>a</td>\n <td>no label</td>\n <td>no label</td>\n <td>1</td>\n </tr>\n <tr>\n <td>b</td>\n <td>no label</td>\n <td>no label</td>\n <td>2</td>\n </tr>\n</table>\n\n\nThis HTML faithfully transcribes the table from the synthetic image provided. Each <tr> (table row) contains <td> (table data cells) entries corresponding to the data from the image.

score: 0

It seems that the < table boarder > in prediction makes the score 0. The problem is afterpred = html.fromstring(pred, parser=parser), pred.xpath("body/table") is an empty list, which leads to score 0.

Could someone please help me to fix it?

What's more, could you please privide preformances of different models on CCOCR. I've check your huggingface spaces but only find OCRBench. Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.