pix2tex / README.md
ymfl's picture
Duplicate from anindya-hf-2002/pix2tex
a371edd
|
Raw
History Blame Contribute Delete
4.93 kB
metadata
dataset_info:
  features:
    - name: image
      dtype: image
    - name: latex
      dtype: string
  splits:
    - name: train
      num_bytes: 1638732362.625
      num_examples: 377163
    - name: validation
      num_bytes: 545374827.875
      num_examples: 125721
    - name: test
      num_bytes: 544914564.75
      num_examples: 125722
  download_size: 2468946641
  dataset_size: 2729021755.25
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*
      - split: validation
        path: data/validation-*
      - split: test
        path: data/test-*
license: apache-2.0
task_categories:
  - image-to-text
language:
  - en

Here’s a completed dataset card for your Pix2Tex dataset based on the provided template:


Pix2Tex

Dataset Details

Dataset Description

The Pix2Tex Dataset is a high-quality, curated dataset for training and evaluating Vision-Language Models (VLMs) capable of extracting LaTeX code from images of mathematical formulas. This dataset combines both printed and handwritten formula images, offering diverse and challenging samples for tasks involving LaTeX recognition.

The dataset contains images paired with their LaTeX annotations, enabling researchers and developers to explore various use cases, including mathematical OCR (Optical Character Recognition), multimodal learning, and LaTeX generation from formula images.

  • Curated by: Anindya
  • Language(s): English (en)
  • License: Apache 2.0

Uses

Direct Use

The Pix2Tex Dataset can be used for:

  • Training and evaluation of Vision-Language Models (VLMs).
  • Image-to-Text conversion for LaTeX generation.
  • Research in mathematical OCR and handwriting recognition.
  • Applications involving mathematical document digitization.

Out-of-Scope Use

The dataset should not be used for purposes unrelated to image-to-text conversion, LaTeX generation, or Vision-Language modeling tasks. Misuse of the dataset for malicious purposes, such as creating deceptive content, is strictly prohibited.


Dataset Structure

Features

The dataset contains the following features:

  • image: The image of the formula (either printed or handwritten).
  • latex: The corresponding LaTeX code representing the formula.

Splits

The dataset is split into three subsets for easier use in machine learning workflows:

Split Number of Examples Size (bytes)
Train 377,163 1,638,732,362.625
Validation 125,721 545,374,827.875
Test 125,722 544,914,564.75

Configurations

The dataset includes a default configuration with the following data files:

  • Train: data/train-*
  • Validation: data/validation-*
  • Test: data/test-*

Dataset Creation

Curation Rationale

The Pix2Tex Dataset was created to address the need for diverse, high-quality datasets for training Vision-Language Models (VLMs) that can extract LaTeX from mathematical formula images. By including both printed and handwritten formulas, the dataset provides a robust benchmark for real-world applications.

Source Data

Data Collection and Processing

The dataset was created by combining two existing datasets:

  • One dataset containing printed formula images with their LaTeX annotations.
  • Another dataset containing handwritten formula images with their LaTeX annotations.

Both datasets were preprocessed to ensure consistency in column naming and annotation quality. The resulting dataset was split into training, validation, and test sets.

Who are the source data producers?

The source data was collected from publicly available datasets and curated for the specific purpose of LaTeX extraction tasks.


Bias, Risks, and Limitations

Risks and Limitations

  • The dataset includes a mix of printed and handwritten formulas, which might introduce variability in performance for models trained solely on one type of input.
  • The handwritten formulas may contain noise due to variations in handwriting styles, potentially challenging OCR tasks.

Recommendations

Users are advised to preprocess the dataset and evaluate models on both printed and handwritten subsets to better understand their performance across different input types.


Citation

If you use this dataset in your research or projects, please cite it as follows:

Glossary

  • Vision-Language Models (VLMs): Machine learning models that combine visual and textual inputs to perform tasks such as image-to-text generation.
  • LaTeX: A typesetting system commonly used for mathematical and scientific documents.

Dataset Card Contact

For any questions or feedback, feel free to contact: