Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 2 new columns ({'bboxes', 'detailed_class'})

This happened while the csv dataset builder was generating data using

hf://datasets/choheeee22/rsna-pneumonia-day4/labels_detailed.csv (at revision 87048b3797d3b14f325b1a4aa87b86940aa2d6fb), [/tmp/hf-datasets-cache/medium/datasets/68377087537851-config-parquet-and-info-choheeee22-rsna-pneumonia-d4365f60/hub/datasets--choheeee22--rsna-pneumonia-day4/snapshots/87048b3797d3b14f325b1a4aa87b86940aa2d6fb/labels.csv (origin=hf://datasets/choheeee22/rsna-pneumonia-day4@87048b3797d3b14f325b1a4aa87b86940aa2d6fb/labels.csv), /tmp/hf-datasets-cache/medium/datasets/68377087537851-config-parquet-and-info-choheeee22-rsna-pneumonia-d4365f60/hub/datasets--choheeee22--rsna-pneumonia-day4/snapshots/87048b3797d3b14f325b1a4aa87b86940aa2d6fb/labels_detailed.csv (origin=hf://datasets/choheeee22/rsna-pneumonia-day4@87048b3797d3b14f325b1a4aa87b86940aa2d6fb/labels_detailed.csv), /tmp/hf-datasets-cache/medium/datasets/68377087537851-config-parquet-and-info-choheeee22-rsna-pneumonia-d4365f60/hub/datasets--choheeee22--rsna-pneumonia-day4/snapshots/87048b3797d3b14f325b1a4aa87b86940aa2d6fb/splits.csv (origin=hf://datasets/choheeee22/rsna-pneumonia-day4@87048b3797d3b14f325b1a4aa87b86940aa2d6fb/splits.csv)]

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1800, in _prepare_split_single
                  writer.write_table(table)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 765, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 773, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2321, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2249, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              patient_id: string
              image_path: string
              label: int64
              detailed_class: string
              bboxes: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 849
              to
              {'patient_id': Value('string'), 'image_path': Value('string'), 'label': Value('int64')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1347, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
                  builder.download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 882, in download_and_prepare
                  self._download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 943, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1646, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1802, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 2 new columns ({'bboxes', 'detailed_class'})
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/choheeee22/rsna-pneumonia-day4/labels_detailed.csv (at revision 87048b3797d3b14f325b1a4aa87b86940aa2d6fb), [/tmp/hf-datasets-cache/medium/datasets/68377087537851-config-parquet-and-info-choheeee22-rsna-pneumonia-d4365f60/hub/datasets--choheeee22--rsna-pneumonia-day4/snapshots/87048b3797d3b14f325b1a4aa87b86940aa2d6fb/labels.csv (origin=hf://datasets/choheeee22/rsna-pneumonia-day4@87048b3797d3b14f325b1a4aa87b86940aa2d6fb/labels.csv), /tmp/hf-datasets-cache/medium/datasets/68377087537851-config-parquet-and-info-choheeee22-rsna-pneumonia-d4365f60/hub/datasets--choheeee22--rsna-pneumonia-day4/snapshots/87048b3797d3b14f325b1a4aa87b86940aa2d6fb/labels_detailed.csv (origin=hf://datasets/choheeee22/rsna-pneumonia-day4@87048b3797d3b14f325b1a4aa87b86940aa2d6fb/labels_detailed.csv), /tmp/hf-datasets-cache/medium/datasets/68377087537851-config-parquet-and-info-choheeee22-rsna-pneumonia-d4365f60/hub/datasets--choheeee22--rsna-pneumonia-day4/snapshots/87048b3797d3b14f325b1a4aa87b86940aa2d6fb/splits.csv (origin=hf://datasets/choheeee22/rsna-pneumonia-day4@87048b3797d3b14f325b1a4aa87b86940aa2d6fb/splits.csv)]
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

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.

patient_id
string
image_path
string
label
int64
fca2546c-2d5b-47b5-b16f-7933453e08cb
images/fca2546c-2d5b-47b5-b16f-7933453e08cb.dcm
0
9ea62a2d-578b-4945-8d7b-d2f8d7773b5e
images/9ea62a2d-578b-4945-8d7b-d2f8d7773b5e.dcm
0
8ecf57a1-3117-4baf-851b-9919d9873860
images/8ecf57a1-3117-4baf-851b-9919d9873860.dcm
0
6be29d68-1927-4609-a7d2-4fcc9ccaf9af
images/6be29d68-1927-4609-a7d2-4fcc9ccaf9af.dcm
0
4566ef68-f103-40b7-bbd2-f5e620191c0d
images/4566ef68-f103-40b7-bbd2-f5e620191c0d.dcm
0
48f6aadb-b69f-45c4-b9e1-186105e770f9
images/48f6aadb-b69f-45c4-b9e1-186105e770f9.dcm
0
610bb23b-30af-4868-8d53-f90cda513fc6
images/610bb23b-30af-4868-8d53-f90cda513fc6.dcm
0
26080061-2232-48a5-99aa-e0984b4d5427
images/26080061-2232-48a5-99aa-e0984b4d5427.dcm
0
d7b49f1d-1642-4c0a-bbe0-0fa81a8e520a
images/d7b49f1d-1642-4c0a-bbe0-0fa81a8e520a.dcm
0
03a9b990-18bb-4370-ac03-7fa385ea72bf
images/03a9b990-18bb-4370-ac03-7fa385ea72bf.dcm
0
c50e1445-58f2-41c5-9774-2d9e24db380b
images/c50e1445-58f2-41c5-9774-2d9e24db380b.dcm
0
dff79a56-a9d5-4fa4-8a45-ccd2d0e4c2f6
images/dff79a56-a9d5-4fa4-8a45-ccd2d0e4c2f6.dcm
0
5f74d71f-3b73-4748-b7df-cc6374890c57
images/5f74d71f-3b73-4748-b7df-cc6374890c57.dcm
0
68644ba7-8699-4b76-aac3-6237c3b2f20d
images/68644ba7-8699-4b76-aac3-6237c3b2f20d.dcm
0
fd6798fe-0267-43c0-a6e8-798760f03399
images/fd6798fe-0267-43c0-a6e8-798760f03399.dcm
0
ade191f7-87b9-4067-ac55-d290deda8fa6
images/ade191f7-87b9-4067-ac55-d290deda8fa6.dcm
0
354c3756-43ed-4921-adf8-60be49a8b7e8
images/354c3756-43ed-4921-adf8-60be49a8b7e8.dcm
0
a25b612b-59c5-4401-a60e-bf3720be8d25
images/a25b612b-59c5-4401-a60e-bf3720be8d25.dcm
0
a974ced3-da4c-48fc-8279-8f37e703a409
images/a974ced3-da4c-48fc-8279-8f37e703a409.dcm
0
96c9dc7c-7962-47d7-b7c9-3488f5ebc45c
images/96c9dc7c-7962-47d7-b7c9-3488f5ebc45c.dcm
0
a7afd170-9f98-46c0-8efa-1d1f24dde75a
images/a7afd170-9f98-46c0-8efa-1d1f24dde75a.dcm
0
f722bf9f-827a-40c4-900d-ffeec2a630e6
images/f722bf9f-827a-40c4-900d-ffeec2a630e6.dcm
0
b5d11411-962b-430c-91b8-5361d80ddaa1
images/b5d11411-962b-430c-91b8-5361d80ddaa1.dcm
0
2d096d09-0957-43b5-a78d-2ea2c2d03b6b
images/2d096d09-0957-43b5-a78d-2ea2c2d03b6b.dcm
0
fc8878b8-aa5b-4ae1-9a32-de3abda9256e
images/fc8878b8-aa5b-4ae1-9a32-de3abda9256e.dcm
0
d90addc3-4722-4df8-9dce-e6cd4fe804f6
images/d90addc3-4722-4df8-9dce-e6cd4fe804f6.dcm
0
44931a76-76ce-4e74-98a6-5db04dc4d8b4
images/44931a76-76ce-4e74-98a6-5db04dc4d8b4.dcm
0
90851418-d975-4858-9396-2a03b31ab76c
images/90851418-d975-4858-9396-2a03b31ab76c.dcm
0
7e608cc0-424d-4cd5-a690-e4f586710b2f
images/7e608cc0-424d-4cd5-a690-e4f586710b2f.dcm
0
097aa88c-3228-4b27-8d30-2071fdb6a37d
images/097aa88c-3228-4b27-8d30-2071fdb6a37d.dcm
0
edef684a-6921-41a1-a5a3-3d66a4114f40
images/edef684a-6921-41a1-a5a3-3d66a4114f40.dcm
0
1b0b50d0-c31e-4713-b252-292423149457
images/1b0b50d0-c31e-4713-b252-292423149457.dcm
0
c164b17b-aff8-484f-9d9e-dde2932d8df9
images/c164b17b-aff8-484f-9d9e-dde2932d8df9.dcm
0
a7fad7f7-9d4f-4595-9097-7e7b28195679
images/a7fad7f7-9d4f-4595-9097-7e7b28195679.dcm
0
c7935568-7703-4ffe-8b55-b656cc5bb7bc
images/c7935568-7703-4ffe-8b55-b656cc5bb7bc.dcm
0
659b4b06-6273-4efb-85fb-93e014d1ca2f
images/659b4b06-6273-4efb-85fb-93e014d1ca2f.dcm
0
4fc735e3-8620-4da8-b30a-d59caf6b099f
images/4fc735e3-8620-4da8-b30a-d59caf6b099f.dcm
0
e5472077-9544-4297-b632-84c97082ec7a
images/e5472077-9544-4297-b632-84c97082ec7a.dcm
0
3f11c0cd-f83f-4eb9-9968-2cf5958d9147
images/3f11c0cd-f83f-4eb9-9968-2cf5958d9147.dcm
0
a2f0b32a-6788-481b-879c-49c88e2407bb
images/a2f0b32a-6788-481b-879c-49c88e2407bb.dcm
0
872805c1-b277-4386-bc7a-4fde8d0647c9
images/872805c1-b277-4386-bc7a-4fde8d0647c9.dcm
0
487176d7-917f-434e-a81e-a91e1ef83e92
images/487176d7-917f-434e-a81e-a91e1ef83e92.dcm
0
38e3b0bc-e533-408d-a589-ca5abecce596
images/38e3b0bc-e533-408d-a589-ca5abecce596.dcm
0
97734238-24dc-4e8d-9cbd-2f3bbc5bebab
images/97734238-24dc-4e8d-9cbd-2f3bbc5bebab.dcm
0
a4c3baae-0f3e-45a0-9a78-51bae5f7bd85
images/a4c3baae-0f3e-45a0-9a78-51bae5f7bd85.dcm
0
66a01743-311e-452a-b093-2ef63ca3ae2b
images/66a01743-311e-452a-b093-2ef63ca3ae2b.dcm
0
f8e0ed85-399a-4c57-afc5-a111923d2662
images/f8e0ed85-399a-4c57-afc5-a111923d2662.dcm
0
902f777f-49d7-4e43-975a-ababb7a8c872
images/902f777f-49d7-4e43-975a-ababb7a8c872.dcm
0
9f29c2b5-9c22-445f-83f7-d0015376df00
images/9f29c2b5-9c22-445f-83f7-d0015376df00.dcm
0
821692fd-9659-4179-b408-e4dda2e10dae
images/821692fd-9659-4179-b408-e4dda2e10dae.dcm
0
54320538-7d1e-4784-840b-1c696eda2407
images/54320538-7d1e-4784-840b-1c696eda2407.dcm
0
17c89271-2986-4e49-be3c-b925e0925515
images/17c89271-2986-4e49-be3c-b925e0925515.dcm
0
5fecf69f-a89f-4ad9-89ef-a72e93bed642
images/5fecf69f-a89f-4ad9-89ef-a72e93bed642.dcm
0
6ff5278b-71a0-4856-9f84-33f33bb8c471
images/6ff5278b-71a0-4856-9f84-33f33bb8c471.dcm
0
42857e2e-ab00-457d-961b-cdbceb8a988b
images/42857e2e-ab00-457d-961b-cdbceb8a988b.dcm
0
e474cc30-33cc-42cd-9128-8981512eeeb8
images/e474cc30-33cc-42cd-9128-8981512eeeb8.dcm
0
14a17c79-36ac-4794-8f6b-797df627ea4d
images/14a17c79-36ac-4794-8f6b-797df627ea4d.dcm
0
f37885af-d611-402f-a662-7e9d6deb5bbb
images/f37885af-d611-402f-a662-7e9d6deb5bbb.dcm
0
8d8f6fdd-ea73-42b8-bbda-a9f0bb76bb9e
images/8d8f6fdd-ea73-42b8-bbda-a9f0bb76bb9e.dcm
0
9373e0be-021b-4ef4-b7d8-973ea23caee3
images/9373e0be-021b-4ef4-b7d8-973ea23caee3.dcm
0
e789379b-99cc-4ba1-80b0-ef1810fd583c
images/e789379b-99cc-4ba1-80b0-ef1810fd583c.dcm
0
3ac3f8a3-21a8-4baa-a6f5-3ce889947dd7
images/3ac3f8a3-21a8-4baa-a6f5-3ce889947dd7.dcm
0
79702301-1ccc-4a54-829d-547a3af5e85a
images/79702301-1ccc-4a54-829d-547a3af5e85a.dcm
0
ca9f417c-50bc-4ac6-9f73-eaced9d0bf4f
images/ca9f417c-50bc-4ac6-9f73-eaced9d0bf4f.dcm
0
f245e457-d791-4435-adf9-05a6c103cee2
images/f245e457-d791-4435-adf9-05a6c103cee2.dcm
0
45be6d94-a6e9-4c26-9738-d389764166de
images/45be6d94-a6e9-4c26-9738-d389764166de.dcm
0
43994237-06cd-4bd0-b1d6-5127e3bf0170
images/43994237-06cd-4bd0-b1d6-5127e3bf0170.dcm
0
6f27fe76-2a4b-4679-8381-664160325373
images/6f27fe76-2a4b-4679-8381-664160325373.dcm
0
ff82e39d-608f-4f9d-b4db-f8598544e754
images/ff82e39d-608f-4f9d-b4db-f8598544e754.dcm
0
440d3b62-7638-48ab-ab66-381833acb954
images/440d3b62-7638-48ab-ab66-381833acb954.dcm
0
6bf4ea67-9a7d-4839-beac-b3541ad31826
images/6bf4ea67-9a7d-4839-beac-b3541ad31826.dcm
0
d2c420e2-b3e4-41b6-a407-6f94e2ec69cc
images/d2c420e2-b3e4-41b6-a407-6f94e2ec69cc.dcm
0
c4a3c834-8713-4813-9ca2-c8484c42415a
images/c4a3c834-8713-4813-9ca2-c8484c42415a.dcm
0
db25155a-2b3f-42f1-a299-d364ee9841dd
images/db25155a-2b3f-42f1-a299-d364ee9841dd.dcm
0
83548cae-0c49-424c-ae08-5cec7900644b
images/83548cae-0c49-424c-ae08-5cec7900644b.dcm
0
c4308828-105d-4cb5-9a1a-409288788769
images/c4308828-105d-4cb5-9a1a-409288788769.dcm
0
c5315efe-b147-427e-b81b-d1cb0bba68ce
images/c5315efe-b147-427e-b81b-d1cb0bba68ce.dcm
0
8ee256be-e94d-4554-8929-a352bc0fba56
images/8ee256be-e94d-4554-8929-a352bc0fba56.dcm
0
b26cc8d8-a11b-4b2f-ad69-41ad37ad5c53
images/b26cc8d8-a11b-4b2f-ad69-41ad37ad5c53.dcm
0
09e8fae9-1714-4b54-a1d3-42a29a9717c3
images/09e8fae9-1714-4b54-a1d3-42a29a9717c3.dcm
0
ab46a2e2-5229-43d6-a473-462948d545d5
images/ab46a2e2-5229-43d6-a473-462948d545d5.dcm
0
6560b160-0f16-45ec-bac1-d753db15fc5a
images/6560b160-0f16-45ec-bac1-d753db15fc5a.dcm
0
0ad6376d-b516-41f3-b9ef-9ad8d2dc642e
images/0ad6376d-b516-41f3-b9ef-9ad8d2dc642e.dcm
0
e88a5ffb-0c53-4d5f-9a3e-a9be06b2a7c0
images/e88a5ffb-0c53-4d5f-9a3e-a9be06b2a7c0.dcm
0
89aa5c47-f644-4add-a711-6c66adb39003
images/89aa5c47-f644-4add-a711-6c66adb39003.dcm
0
15caed66-ea48-488f-8c54-4f6debd7645d
images/15caed66-ea48-488f-8c54-4f6debd7645d.dcm
0
90849bf6-c078-47c5-a407-1e3fe1d006e5
images/90849bf6-c078-47c5-a407-1e3fe1d006e5.dcm
0
44f10d11-3736-4b77-8212-7fee444f0fc8
images/44f10d11-3736-4b77-8212-7fee444f0fc8.dcm
0
c80c8b8f-e4af-48a1-a7a4-42ac433d315e
images/c80c8b8f-e4af-48a1-a7a4-42ac433d315e.dcm
0
d8e9ec9c-eac0-49b6-a983-af4970fd01c5
images/d8e9ec9c-eac0-49b6-a983-af4970fd01c5.dcm
0
e5f5d529-7f51-40a6-9301-0b6ed0cfa941
images/e5f5d529-7f51-40a6-9301-0b6ed0cfa941.dcm
0
7122e35f-0a9e-49b9-b2f3-a80e85cc521e
images/7122e35f-0a9e-49b9-b2f3-a80e85cc521e.dcm
0
ed5b8fd3-20e3-4b3d-8044-6332cd15c2dd
images/ed5b8fd3-20e3-4b3d-8044-6332cd15c2dd.dcm
0
5170a7d4-a119-4471-9f3c-824756bf6644
images/5170a7d4-a119-4471-9f3c-824756bf6644.dcm
0
9f3eb249-c086-4cb1-a771-c226e93db399
images/9f3eb249-c086-4cb1-a771-c226e93db399.dcm
0
a61b96d1-418a-4841-a26c-0f2ad9e9f1f2
images/a61b96d1-418a-4841-a26c-0f2ad9e9f1f2.dcm
0
85a307fc-6a0c-4dd7-9402-7950496bb911
images/85a307fc-6a0c-4dd7-9402-7950496bb911.dcm
0
46ed3eed-7206-4235-b4d3-ffeeb54b0728
images/46ed3eed-7206-4235-b4d3-ffeeb54b0728.dcm
0
5638cc31-f018-4701-a668-b98eac35a0b8
images/5638cc31-f018-4701-a668-b98eac35a0b8.dcm
0
22da0004-e69d-49c5-bde5-252ab5895da0
images/22da0004-e69d-49c5-bde5-252ab5895da0.dcm
0
End of preview.

RSNA Pneumonia — Day 4 Subset (1,000 DICOMs)

의료AI 강의 Day 4 (DICOM 형식 이해 + PyTorch Dataset/DataLoader)용 서브셋입니다.

데이터 출처

원본: RSNA Pneumonia Detection Challenge (2018)

원본 데이터는 RSNA(Radiological Society of North America)와 NIH가 공동 공개한 흉부 X-ray DICOM 데이터셋입니다. 본 서브셋은 강의 목적을 위해 1,000장을 추출한 것이며, 모든 권리와 출처 표기 의무는 RSNA의 약관을 따릅니다.

구성

항목
총 장수 1,000
양성 (label=1, Lung Opacity) 500
음성 (label=0, Normal + No Lung Opacity/Not Normal) 500
영상 형식 DICOM (1024×1024, 8-bit)
Train / Val 800 / 200 (환자 단위 stratified 80:20)

파일 구조

.
├── README.md
├── day4_data.py            # 로더 헬퍼 (load_day4_dataset, load_day4_detailed)
├── labels.csv              # patient_id, image_path, label
├── labels_detailed.csv     # + detailed_class (Normal / No Lung Opacity-Not Normal / Lung Opacity) + bboxes (json)
├── splits.csv              # patient_id, split (train/val)
└── images/                 # 1,000개 DICOM
    ├── <patient_id>.dcm
    └── ...

사용 예시

!pip install -q huggingface_hub pydicom pandas
from huggingface_hub import snapshot_download
import sys

data_dir = snapshot_download(
    repo_id="<USERNAME>/rsna-pneumonia-day4",
    repo_type="dataset",
)
sys.path.append(data_dir)
from day4_data import load_day4_dataset

# 자연 분포(~22%)
df = load_day4_dataset(n=300)

# M4 — 극단 불균형(10% 양성)
df_imbalanced = load_day4_dataset(n=300, prevalence=0.1)

# M4 — Sampler 적용 후 균형(50%)
df_balanced = load_day4_dataset(n=300, prevalence=0.5)

# Val
df_val = load_day4_dataset(n=100, split="val")

라벨 정의

원본 RSNA 3-class를 이진 분류로 단순화:

label 포함 클래스
1 Lung Opacity (폐렴 양성)
0 Normal + No Lung Opacity / Not Normal

3-class 원본 정보가 필요하면 load_day4_detailed()detailed_class 컬럼을 함께 받을 수 있습니다.

라이선스 / 인용

본 서브셋은 RSNA Pneumonia Detection Challenge의 데이터 사용 약관을 준수합니다. 사용 시 다음과 같이 인용해 주세요:

RSNA Pneumonia Detection Challenge (2018).
Radiological Society of North America.
https://www.kaggle.com/c/rsna-pneumonia-detection-challenge

원본 데이터는 NIH ChestX-ray14 데이터셋을 기반으로 RSNA 자원 봉사 영상의학과 의사들이 폐 음영(lung opacity) 라벨을 추가하여 구축되었습니다.

Downloads last month
10