Dataset Viewer
Auto-converted to Parquet 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:    CastError
Message:      Couldn't cast
image: struct<bytes: binary, path: string>
  child 0, bytes: binary
  child 1, path: string
labels: string
filename: string
-- schema metadata --
huggingface: '{"info": {"features": {"image": {"_type": "Image"}, "labels' + 94
to
{'image': Image(mode=None, decode=True), 'labels': Value('string')}
because column names don't match
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 2690, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2227, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2251, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 494, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 384, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/parquet/parquet.py", line 209, in _generate_tables
                  yield Key(file_idx, batch_idx), self._cast_table(pa_table)
                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/parquet/parquet.py", line 147, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2281, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2227, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              image: struct<bytes: binary, path: string>
                child 0, bytes: binary
                child 1, path: string
              labels: string
              filename: string
              -- schema metadata --
              huggingface: '{"info": {"features": {"image": {"_type": "Image"}, "labels' + 94
              to
              {'image': Image(mode=None, decode=True), 'labels': Value('string')}
              because column names don't match

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.

NIH Chest X-ray14 — Processed for CheXVision

This dataset wraps the NIH Chest X-ray14 dataset, preprocessed for the CheXVision project.

Labels

Label Count Prevalence
Infiltration 19,894 17.7%
Effusion 13,317 11.9%
Atelectasis 11,559 10.3%
Nodule 6,331 5.6%
Mass 5,782 5.2%
Pneumothorax 5,302 4.7%
Consolidation 4,667 4.2%
Pleural_Thickening 3,385 3.0%
Cardiomegaly 2,776 2.5%
Emphysema 2,516 2.2%
Edema 2,303 2.1%
Fibrosis 1,686 1.5%
Pneumonia 1,431 1.3%
Hernia 227 0.2%
No Finding 60,361 53.8%

Usage

from datasets import load_dataset

# Load from source
dataset = load_dataset("alkzar90/NIH-Chest-X-ray-dataset")

Tasks

  1. Multi-label classification: Predict all 14 pathologies per image
  2. Binary classification: Normal (No Finding) vs Abnormal (any pathology)

Citation

@inproceedings{wang2017chestx,
  title={ChestX-ray8: Hospital-scale Chest X-ray Database and Benchmarks},
  author={Wang, Xiaosong and Peng, Yifan and Lu, Le and Lu, Zhiyong and Bagheri, Mohammadhadi and Summers, Ronald M},
  booktitle={CVPR},
  year={2017}
}

Project

Part of the CheXVision project -- Deep Learning & Big Data, AIN.

Downloads last month
441

Spaces using arudaev/chest-xray-14 2