Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for Sharing the Rendering Code #10

Open
Uason-Chen opened this issue Aug 26, 2024 · 1 comment
Open

Request for Sharing the Rendering Code #10

Uason-Chen opened this issue Aug 26, 2024 · 1 comment

Comments

@Uason-Chen
Copy link

Hello,

Thanks for sharing the code and dataset for TableLLaVA. I greatly appreciate your time and effort in this project.

However, I noticed that the rendering code is not provided in the repository. I understand that there could be various reasons for this, but if it's possible, could you please share the rendering code? I believe it would be incredibly beneficial for me and others who are interested in this project, and it would provide us with a deeper understanding of your work.

@SpursGoZmy
Copy link
Owner

The rendered table images have 3 styles and each style has different rendering code.

  1. Markdown Style: Read the markdown table data as a DataFrame object with Pandas python package and use dataframe_image python package to convert the dataframe into a image.
  2. HTML Style: Get the html code of the original table or build a html code base on the table data, and use html2image python package to convert the html into a screentshot image. Then you need to write a script to clip the extra white space around the table.
  3. Excel Style: Write the table data into an Excel. Use xlwings package to read the excel file and convert it to a image.

Data Augmentation: during rendering the table image, data augmentations like changing the font type or cell color can be added.

For different datasets, the difficulty of rendering tables into images is different and it indeed needs quite a lot of careful work. We will try to clean up our rendering code for open-source. But we really can not guarantee a very soon DDL. Thanks for your understanding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@SpursGoZmy @Uason-Chen and others