Dataset Viewer
The dataset viewer is not available for this subset.
Cannot get the split names for the config 'default' of the dataset.
Exception:    SplitsNotFoundError
Message:      The split names could not be parsed from the dataset config.
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 290, in _generate_tables
                  pa_table = paj.read_json(
                      io.BytesIO(batch), read_options=paj.ReadOptions(block_size=block_size)
                  )
                File "pyarrow/_json.pyx", line 342, in pyarrow._json.read_json
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                  return check_status(status)
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
                  raise convert_status(status)
              pyarrow.lib.ArrowInvalid: JSON parse error: Column() changed from object to string in row 0
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 286, in get_dataset_config_info
                  for split_generator in builder._split_generators(
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      StreamingDownloadManager(base_path=builder.base_path, download_config=download_config)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 101, in _split_generators
                  pa_table = next(iter(self._generate_tables(**splits[0].gen_kwargs, allow_full_read=False)))[1]
                             ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 304, in _generate_tables
                  batch = json_encode_fields_in_json_lines(original_batch, json_field_paths)
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/json.py", line 111, in json_encode_fields_in_json_lines
                  examples = [ujson_loads(line) for line in original_batch.splitlines()]
                              ~~~~~~~~~~~^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/json.py", line 20, in ujson_loads
                  return pd.io.json.ujson_loads(*args, **kwargs)
                         ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
              ValueError: Expected object or value
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 66, in compute_split_names_from_streaming_response
                  for split in get_dataset_split_names(
                               ~~~~~~~~~~~~~~~~~~~~~~~^
                      path=dataset,
                      ^^^^^^^^^^^^^
                      config_name=config,
                      ^^^^^^^^^^^^^^^^^^^
                      token=hf_token,
                      ^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 340, in get_dataset_split_names
                  info = get_dataset_config_info(
                      path,
                  ...<6 lines>...
                      **config_kwargs,
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 291, in get_dataset_config_info
                  raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
              datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.

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.

REVA-PO Datasets

Dataset files and annotations used in REVA-PO: Stabilizing Reinforcement Learning for Chest X-ray Report Generation, accepted to ECCV 2026.

Paper Code Weights

Overview

REVA-PO is a reinforcement learning framework for chest X-ray report generation. It uses Response-Weighted Regularization and Validation-Anchored Policy Reset to improve training stability and exploration.

This repository contains the IU-Xray data package and the MIMIC-CXR annotation files used by the released code. The model checkpoints are available in the REVA-PO weights repository.

Repository Contents

REVA_PO_Datasets/
β”œβ”€β”€ iuxray_dataset/
β”‚   β”œβ”€β”€ annotation_with_categories.json
β”‚   └── images.zip
└── mimic_dataset/
    β”œβ”€β”€ mimic_with_categories.json
    └── mimic_with_categories_sampled_10k.json
Path Description
iuxray_dataset/images.zip IU-Xray chest X-ray images arranged for the released REVA-PO data loader.
iuxray_dataset/annotation_with_categories.json IU-Xray train, validation, and test annotations with report text and clinical categories.
mimic_dataset/mimic_with_categories.json Full MIMIC-CXR annotation file used for supervised training.
mimic_dataset/mimic_with_categories_sampled_10k.json MIMIC-CXR annotation file with 9,974 randomly sampled training instances for reinforcement learning. The validation and test splits are unchanged.

Download

Install the Hugging Face Hub client:

pip install -U huggingface_hub

Download the full repository:

from huggingface_hub import snapshot_download

snapshot_download(
    repo_id="liguo12/REVA_PO_Datasets",
    repo_type="dataset",
    local_dir="REVA_PO_Datasets",
)

To download only selected files:

from huggingface_hub import hf_hub_download

iu_annotations = hf_hub_download(
    repo_id="liguo12/REVA_PO_Datasets",
    repo_type="dataset",
    filename="iuxray_dataset/annotation_with_categories.json",
)

mimic_annotations = hf_hub_download(
    repo_id="liguo12/REVA_PO_Datasets",
    repo_type="dataset",
    filename="mimic_dataset/mimic_with_categories_sampled_10k.json",
)

IU-Xray Setup

Extract images.zip inside iuxray_dataset/:

cd REVA_PO_Datasets/iuxray_dataset
unzip images.zip

The resulting directory should be:

iuxray_dataset/
β”œβ”€β”€ images/
β”‚   β”œβ”€β”€ CXR2384_IM-0942/
β”‚   β”‚   β”œβ”€β”€ 0.png
β”‚   β”‚   └── 1.png
β”‚   └── ...
└── annotation_with_categories.json

Set the following fields in the REVA-PO configuration files:

storage: /path/to/iuxray_dataset
ann_file: /path/to/iuxray_dataset/annotation_with_categories.json

MIMIC-CXR Setup

MIMIC-CXR images are not included in this repository. Obtain authorized access to MIMIC-CXR-JPG v2.1.0 through PhysioNet, then place its files/ directory beside the downloaded annotation files:

mimic_dataset/
β”œβ”€β”€ files/
β”‚   β”œβ”€β”€ p10/
β”‚   β”‚   β”œβ”€β”€ p10000032/
β”‚   β”‚   β”‚   β”œβ”€β”€ s50414267/
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ 02aa804e-bde0afdd-112c0b34-7bc16630-4e384014.jpg
β”‚   β”‚   β”‚   β”‚   └── ...
β”‚   β”‚   β”‚   └── ...
β”‚   β”‚   └── ...
β”‚   └── ...
β”œβ”€β”€ mimic_with_categories.json
└── mimic_with_categories_sampled_10k.json

For supervised training (stage 1 and stage 2), use:

storage: /path/to/mimic_dataset
ann_file: /path/to/mimic_dataset/mimic_with_categories.json

For the released reinforcement learning (stage 3), use:

storage: /path/to/mimic_dataset
ann_file: /path/to/mimic_dataset/mimic_with_categories_sampled_10k.json

IU-Xray Annotation Format

The annotation files are JSON objects organized by data split:

{
  "train": [
    {
      "id": "CXR2384_IM-0942",
      "report": "The heart size and pulmonary vascularity appear within normal limits...",
      "image_path": [
        "CXR2384_IM-0942/0.png",
        "CXR2384_IM-0942/1.png"
      ],
      "split": "train",
      "positive_categories": ["No Finding"],
      "uncertain_categories": [],
      "negative_categories": [
        "Cardiomegaly",
        "Lung Opacity",
        "Pneumothorax",
        "Pleural Effusion"
      ],
      "categories": [
        "No Finding"
      ]
    }
  ],
  "val": [...],
  "test": [...]
}

Common fields include:

Field Description
id Study or examination identifier.
report Reference radiology report.
image_path Relative path or paths to the associated chest X-ray images.
split Data split.
positive_categories Clinical categories labeled as positive.
uncertain_categories Clinical categories labeled as uncertain.
negative_categories Clinical categories labeled as negative.
categories Categories used by the REVA-PO training pipeline.

The exact fields can differ slightly between IU-Xray and MIMIC-CXR. Use the released data loaders in the code repository as the reference implementation.

Intended Use

These files are intended for research on:

  • Chest X-ray report generation
  • Medical image-to-text generation
  • Clinical vision-language learning
  • Reinforcement learning for report generation
  • Evaluation of linguistic quality and clinical accuracy

They are not intended for direct clinical diagnosis, treatment decisions, or use without independent medical validation.

Limitations

The annotations inherit the limitations of IU-Xray and MIMIC-CXR, including dataset-specific reporting patterns, label noise, class imbalance, and differences between institutions. Performance measured on these datasets does not establish safety or effectiveness in clinical use.

License and Access Notes

The annotation files and other original materials released in this repository are licensed under the Creative Commons Attribution 4.0 International License. You may use, share, and adapt these materials for research or other purposes, provided that appropriate credit is given to the REVA-PO authors.

This license applies only to materials created and released by the REVA-PO authors. It does not replace the terms of the original datasets:

  • MIMIC-CXR-JPG requires credentialed access through PhysioNet. Users must follow the PhysioNet Credentialed Health Data Use Agreement and the MIMIC-CXR-JPG access conditions.
  • IU-Xray data remains subject to the terms of its original source.
  • The REVA-PO source code is released under the license stated in the GitHub repository.
  • Users are responsible for checking and following all terms that apply to the source datasets.

Citation

If you use these files or the REVA-PO method, please cite:

@misc{guo2026revapo,
  title        = {REVA-PO: Stabilizing Reinforcement Learning for Chest X-ray Report Generation},
  author       = {Li Guo and Anas M. Tahir and Z. Jane Wang},
  year         = {2026},
  eprint       = {2607.10147},
  archivePrefix = {arXiv},
  primaryClass = {cs.CV},
  url          = {https://arxiv.org/abs/2607.10147}
}

Please also cite the original IU-Xray and MIMIC-CXR resources when applicable.

Downloads last month
44

Models trained or fine-tuned on liguo12/REVA_PO_Datasets

Paper for liguo12/REVA_PO_Datasets