Plot2Code benchmark is now open-sourced at huggingface (ARC Lab) and GitHub. More information can be found in our paper.
🧐 While MLLMs have demonstrated potential in visual contexts, their capabilities in visual coding tasks have not been thoroughly evaluated. Plot2Code offers a platform for comprehensive assessment of these models.
🤗 To enable individuals to ascertain the proficiency of AI assistants in generating code that renders into plots given reference plots, we initiated the Plot2Code project. This ensures evaluations are pertinent to real-world applications.
💻 Plot2Code accommodates all modalities (text and images) for both input and output, facilitating an exploration of the influence of each modality.
You can use following codes to download the dataset:
git lfs install
git clone https://huggingface.co/datasets/TencentARC/Plot2Code
Plot2Code was created to serve as a visaul coding benchmark for Multi-Modal Large Language Models (MLLMs).
We carefully collect 132 manually selected high-quality matplotlib plots across six plot types from publicly available matplotlib galleries. Each plot is paired with the code used to render it and an instruction derived by GPT-4 to describe the plot.
Plot2Code is primarily designed as a benchmark for code generation from scientific plots. Specifically, it supports the following settings:
By employing these settings, we can investigate the impact of each input modality on the quality of the final rendered plots.
In this study, we crawled every website link listed in the Matplotlib gallery and Plotly documentation to collect data for our analysis. Both Matplotlib and Plotly libraries are distributed under permissive open-source licenses. We have taken the following steps to ensure compliance with the respective license terms:
By adhering to these guidelines, we ensure that our use of the Matplotlib and Plotly content is fully compliant with their respective licenses.
This project is open-sourced under the Apache-2.0. These evaluation code and datasets are fully open for academic research and can be used for commercial purposes with official written permission.
arxiv.org/abs/2405.07990
The code and model in this repository is mostly developed for or derived from the paper below. Please cite it if you find the repository helpful.
@misc{wu2024plot2code,
title={Plot2Code: A Comprehensive Benchmark for Evaluating Multi-modal Large Language Models in Code Generation from Scientific Plots},
author={Chengyue Wu and Yixiao Ge and Qiushan Guo and Jiahao Wang and Zhixuan Liang and Zeyu Lu and Ying Shan and Ping Luo},
year={2024},
eprint={2405.07990},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
33 commits
1 commits
Plot2Code benchmark is now open-sourced at huggingface (ARC Lab) and GitHub. More information can be found in our paper.
🧐 While MLLMs have demonstrated potential in visual contexts, their capabilities in visual coding tasks have not been thoroughly evaluated. Plot2Code offers a platform for comprehensive assessment of these models.
🤗 To enable individuals to ascertain the proficiency of AI assistants in generating code that renders into plots given reference plots, we initiated the Plot2Code project. This ensures evaluations are pertinent to real-world applications.
💻 Plot2Code accommodates all modalities (text and images) for both input and output, facilitating an exploration of the influence of each modality.
You can use following codes to download the dataset:
git lfs install
git clone https://huggingface.co/datasets/TencentARC/Plot2Code
Plot2Code was created to serve as a visaul coding benchmark for Multi-Modal Large Language Models (MLLMs).
We carefully collect 132 manually selected high-quality matplotlib plots across six plot types from publicly available matplotlib galleries. Each plot is paired with the code used to render it and an instruction derived by GPT-4 to describe the plot.
Plot2Code is primarily designed as a benchmark for code generation from scientific plots. Specifically, it supports the following settings:
By employing these settings, we can investigate the impact of each input modality on the quality of the final rendered plots.
In this study, we crawled every website link listed in the Matplotlib gallery and Plotly documentation to collect data for our analysis. Both Matplotlib and Plotly libraries are distributed under permissive open-source licenses. We have taken the following steps to ensure compliance with the respective license terms:
By adhering to these guidelines, we ensure that our use of the Matplotlib and Plotly content is fully compliant with their respective licenses.
This project is open-sourced under the Apache-2.0. These evaluation code and datasets are fully open for academic research and can be used for commercial purposes with official written permission.
arxiv.org/abs/2405.07990
The code and model in this repository is mostly developed for or derived from the paper below. Please cite it if you find the repository helpful.
@misc{wu2024plot2code,
title={Plot2Code: A Comprehensive Benchmark for Evaluating Multi-modal Large Language Models in Code Generation from Scientific Plots},
author={Chengyue Wu and Yixiao Ge and Qiushan Guo and Jiahao Wang and Zhixuan Liang and Zeyu Lu and Ying Shan and Ping Luo},
year={2024},
eprint={2405.07990},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
33 commits
1 commits