Datasets:
|
Download README.md from MedOtter/ct-org: direct link, hf CLI and curl.
- Browser
- Download file 1.98 kB
-
https://huggingface.co/datasets/MedOtter/ct-org/resolve/main/README.md
- Command line
-
hf download hf://datasets/MedOtter/ct-org/README.md
-
curl -L -o README.md https://huggingface.co/datasets/MedOtter/ct-org/resolve/main/README.md
1.98 kB
| license: cc-by-4.0 | |
| task_categories: | |
| - image-segmentation | |
| tags: | |
| - medical | |
| - CT | |
| - segmentation | |
| - CT_ORG | |
| size_categories: | |
| - n<1K | |
| configs: | |
| - config_name: default | |
| data_files: | |
| - split: train | |
| path: train.jsonl | |
| # CT-ORG Multi-Organ Segmentation Dataset | |
| ## Dataset Description | |
| The CT-ORG Multi-Organ Segmentation dataset for multi-organ segmentation from whole-body CT scans. This dataset contains CT scans with dense segmentation annotations. | |
| ### Dataset Details | |
| - **Modality**: CT | |
| - **Target**: liver, bladder, lung, kidney, bone, brain | |
| - **Format**: NIfTI (.nii.gz) | |
| ### Dataset Structure | |
| Each sample in the JSONL file contains: | |
| ```json | |
| { | |
| "image": "path/to/image.nii.gz", | |
| "mask": "path/to/mask.nii.gz", | |
| "label": ["organ1", "organ2", ...], | |
| "modality": "CT", | |
| "dataset": "CT_ORG", | |
| "official_split": "train", | |
| "patient_id": "patient_id" | |
| } | |
| ``` | |
| ## Usage | |
| ### Load Metadata | |
| ```python | |
| from datasets import load_dataset | |
| # Load the dataset | |
| ds = load_dataset("Angelou0516/ct-org") | |
| # Access a sample | |
| sample = ds['train'][0] | |
| print(f"Patient ID: {sample['patient_id']}") | |
| print(f"Image: {sample['image']}") | |
| print(f"Mask: {sample['mask']}") | |
| print(f"Labels: {sample['label']}") | |
| ``` | |
| ### Load Images | |
| ```python | |
| from huggingface_hub import snapshot_download | |
| import nibabel as nib | |
| import os | |
| # Download the full dataset | |
| local_path = snapshot_download( | |
| repo_id="Angelou0516/ct-org", | |
| repo_type="dataset" | |
| ) | |
| # Load a sample | |
| sample = ds['train'][0] | |
| image = nib.load(os.path.join(local_path, sample['image'])) | |
| mask = nib.load(os.path.join(local_path, sample['mask'])) | |
| # Get numpy arrays | |
| image_data = image.get_fdata() | |
| mask_data = mask.get_fdata() | |
| print(f"Image shape: {image_data.shape}") | |
| print(f"Mask shape: {mask_data.shape}") | |
| ``` | |
| ## Citation | |
| ```bibtex | |
| @article{ct_org, | |
| title={CT-ORG: CT volumes with multiple Organ segmentations}, | |
| year={2023} | |
| } | |
| ``` | |
| ## License | |
| CC-BY-4.0 | |
| ## Dataset Homepage | |
| https://wiki.cancerimagingarchive.net/display/Public/CT-ORG | |