Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    UnidentifiedImageError
Message:      cannot identify image file <_io.BytesIO object at 0x7fc02460d990>
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
                  return get_rows(
                         ^^^^^^^^^
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                         ^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
                  rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2567, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2103, in __iter__
                  batch = formatter.format_batch(pa_table)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/formatting/formatting.py", line 472, in format_batch
                  batch = self.python_features_decoder.decode_batch(batch)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/formatting/formatting.py", line 234, in decode_batch
                  return self.features.decode_batch(batch, token_per_repo_id=self.token_per_repo_id) if self.features else batch
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 2254, in decode_batch
                  decode_nested_example(self[column_name], value, token_per_repo_id=token_per_repo_id)
                File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 1508, in decode_nested_example
                  return schema.decode_example(obj, token_per_repo_id=token_per_repo_id) if obj is not None else None
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/features/image.py", line 190, in decode_example
                  image = PIL.Image.open(bytes_)
                          ^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/PIL/Image.py", line 3498, in open
                  raise UnidentifiedImageError(msg)
              PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7fc02460d990>

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

YAML Metadata Warning: empty or missing yaml metadata in repo card

Check out the documentation for more information.

U-RxnDiagram-15k Dataset

Dataset Overview

U-RxnDiagram-15k Dataset is a large-scale dataset specifically designed for chemical reaction diagram parsing, containing chemical reaction images extracted from scientific literature PDFs along with detailed annotations. This dataset aims to support research in cheminformatics, document analysis, and computer vision fields.

Dataset Statistics

  • Total Images: 15,400 images
    • Train set: 15,000 images
    • Test set: 400 images
  • Total Reactions: 48,255 reactions
    • Train set: 45,426 reactions
    • Test set: 2,829 reactions
  • Data Source: Scientific literature PDF files
  • Image Format: PNG
  • Total Annotations: Approximately 165,468 annotation instances

Dataset Structure

U-RxnDiagram-15k/
β”œβ”€β”€ train_set/
β”‚   β”œβ”€β”€ ground_truth.json          # Train set annotation file
β”‚   └── images/                    # Train set image directory
└── test_set/
    β”œβ”€β”€ ground_truth.json          # Test set annotation file
    └── images/                    # Test set image directory

Annotation Category Definitions

The dataset defines 4 main categories, each containing multiple fine-grained attributes:

1. Structure - category_id: 1

  • P-reactant: Reactant molecular structures
  • P-product: Product molecular structures
  • P-reaction condition: Reaction condition molecular structures

2. Text - category_id: 2

  • T-reaction condition: Reaction condition text
  • T-reactant: Reactant text
  • T-product: Product text

3. Identifier - category_id: 3

  • Chemical identifiers and numbers

4. Supplement - category_id: 4

  • Other supplementary information

Annotation Statistics

Train Set

Attribute Type Annotation Count Percentage
T-reaction condition 56,377 35.84%
P-reactant 31,779 20.20%
P-product 30,808 28.79%
T-reactant 6,433 6.02%
T-product 3,804 2.42%
P-reaction condition 6,230 3.96%

Test Set

Attribute Type Annotation Count Percentage
T-reaction condition 3,011 36.92%
P-reactant 1,521 18.65%
P-product 2,348 28.79%
T-reactant 491 6.02%
T-product 388 4.76%
P-reaction condition 397 4.87%

Data Format

Image File Naming

Image filenames are hashed (SHA-256, first 8 hex chars). Example: a1b2c3d4.png.

Annotation File Format (ground_truth.json)

The annotation file follows COCO format and contains the following main fields:

{
  "licenses": [...],
  "info": {
    "description": "A dataset for chemical visual diagram analysis",
    "version": "v1",
    "year": "2025"
  },
  "categories": [
    {"id": 1, "name": "structure"},
    {"id": 2, "name": "text"},
    {"id": 3, "name": "identifier"},
    {"id": 4, "name": "supplement"}
  ],
  "images": [
    {
      "id": 2,
      "class": "figure",
      "confidence": 0.9148465991020203,
      "bbox": [x1, y1, x2, y2],
      "original_id": 0,
      "width": 1008.7104797363281,
      "height": 471.88232421875,
      "file_name": "ays765k9.png",
      "bboxes": [
        {
          "id": 0,
          "bbox": [x, y, width, height],
          "category_id": 1,
          "category": "P",
          "attribute": "P-reactants",
          "region_id": ["akzkPsql"]
        }
      ]
    }
  ]
}

Annotation Field Descriptions

  • id: Unique annotation identifier
  • bbox: Bounding box coordinates [x1, y1, x2, y2] for image-level bbox, [x, y, width, height] for bboxes list
  • category_id: Category ID (1-4)
  • category: Category abbreviation (P=Structure, T=Text)
  • attribute: Specific attribute name
  • region_id: List of region identifiers

Use Cases

This dataset is suitable for the following research tasks:

  1. Chemical Structure Recognition: Identify and locate molecular structures in chemical reactions
  2. Text Information Extraction: Extract text information from chemical diagrams
  3. Reaction Condition Analysis: Identify and analyze reaction conditions
  4. Document Understanding: Understand chemical information in scientific literature
  5. Multimodal Learning: Combine visual and text information for chemical analysis

Data Quality

  • All images are sourced from high-quality scientific literature
  • Annotations are professionally verified for accuracy
  • Contains samples of various chemical reaction types and complexities
  • Supports fine-grained chemical information analysis

License

This dataset is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).

Terms of Use

You are free to:

  • Share β€” copy and redistribute the material in any medium or format
  • Adapt β€” remix, transform, and build upon the material

Under the following terms:

  • Attribution β€” You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • NonCommercial β€” You may not use the material for commercial purposes. Commercial use is prohibited without explicit permission from the licensor.

Citation

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

@article{song2025rxncaption,
  title={RxnCaption: Reformulating Reaction Diagram Parsing as Visual Prompt Guided Captioning},
  author={Song, Jiahe and Wang, Chuang and Jiang, Bowen and Wang, Yinfan and Zheng, Hao and Wei, Xingjian and Liu, Chengjin and Nie, Rui and Gao, Junyuan and Sun, Jiaxing and others},
  journal={arXiv preprint arXiv:2511.02384},
  year={2025}
}

Contact

For questions or suggestions, please contact songjiahe@pjlab.org.cn


Last updated: 2025

Downloads last month
23

Paper for songjhPKU/U-RxnDiagram-15k