nahidhasan commited on
Commit
1f12fc8
·
verified ·
1 Parent(s): 190d185

Upload resized CT volumes with metadata

Browse files
Files changed (2) hide show
  1. README.md +27 -8
  2. data.parquet +2 -2
README.md CHANGED
@@ -21,15 +21,25 @@ This dataset contains resized chest CT scans from the RadGenome-ChestCT dataset.
21
  - **Original Resolution**: 900x900xN
22
  - **Resized Resolution**: 300x300xN
23
  - **Format**: NIfTI (.nii.gz)
24
- - **Number of Volumes**: 1570
25
  - **Space Reduction**: ~89% (resized to 1/9th of original spatial dimensions)
26
 
27
  ## Dataset Structure
28
 
29
  Each entry contains:
30
- - `volumename`: Name of the CT volume file
31
- - `volume_path`: Relative path to the .nii.gz file
32
- - Additional metadata columns from the original dataset
 
 
 
 
 
 
 
 
 
 
33
 
34
  ## Usage
35
 
@@ -38,13 +48,22 @@ from datasets import load_dataset
38
  import nibabel as nib
39
 
40
  # Load the dataset
41
- dataset = load_dataset("nahidhasan/radgenome-ct-reshaped-tiny")
 
 
 
 
 
 
 
 
 
 
42
 
43
- # Access a volume
44
- volume_path = dataset['train'][0]['volume_path']
45
  # Download and load the NIfTI file
46
- # nii = nib.load(volume_path)
47
  # data = nii.get_fdata()
 
48
  ```
49
 
50
  ## Source
 
21
  - **Original Resolution**: 900x900xN
22
  - **Resized Resolution**: 300x300xN
23
  - **Format**: NIfTI (.nii.gz)
24
+ - **Number of Volumes**: 253
25
  - **Space Reduction**: ~89% (resized to 1/9th of original spatial dimensions)
26
 
27
  ## Dataset Structure
28
 
29
  Each entry contains:
30
+ - `volumename`: Name of the CT volume file (string)
31
+ - `anatomy`: Anatomical region information (string)
32
+ - `sentence`: Associated radiology report sentence (string)
33
+ - `volume_path`: Relative path to the .nii.gz file (string)
34
+
35
+ ## Columns
36
+
37
+ | Column | Type | Description |
38
+ |--------|------|-------------|
39
+ | volumename | string | CT volume filename |
40
+ | anatomy | string | Anatomical region |
41
+ | sentence | string | Radiology report text |
42
+ | volume_path | string | Path to .nii.gz file |
43
 
44
  ## Usage
45
 
 
48
  import nibabel as nib
49
 
50
  # Load the dataset
51
+ ds = load_dataset("nahidhasan/radgenome-ct-reshaped-tiny")
52
+
53
+ # Access dataset information
54
+ print(f"Number of samples: {len(ds['train'])}")
55
+
56
+ # Access a single entry
57
+ sample = ds['train'][0]
58
+ print(f"Volumename: {sample['volumename']}")
59
+ print(f"Anatomy: {sample['anatomy']}")
60
+ print(f"Sentence: {sample['sentence']}")
61
+ print(f"Volume path: {sample['volume_path']}")
62
 
 
 
63
  # Download and load the NIfTI file
64
+ # nii = nib.load(sample['volume_path'])
65
  # data = nii.get_fdata()
66
+ # print(f"Volume shape: {data.shape}")
67
  ```
68
 
69
  ## Source
data.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e9029433bc6f1168693a6ea9e3f8bac4648187042979be5b3a3b59eecb9f1ba7
3
- size 67107
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3f25e7b60dc0bf1537e68090ae1ed51110d44769992c6c93df9f67d1cf2de20
3
+ size 13359