Datasets:
Commit ·
6e355c1
verified ·
0
Parent(s):
Duplicate from YongchengYAO/OAIZIB-CM
Browse filesCo-authored-by: Yongcheng Yao <YongchengYAO@users.noreply.huggingface.co>
- .gitattributes +59 -0
- HF-OAIZIB-CM.png +3 -0
- README.md +164 -0
- imagesTr.zip +3 -0
- imagesTs.zip +3 -0
- info.zip +3 -0
- labelsTr.zip +3 -0
- labelsTs.zip +3 -0
- template_atlas.zip +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
# Audio files - uncompressed
|
| 39 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
# Audio files - compressed
|
| 43 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
# Image files - uncompressed
|
| 49 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
# Image files - compressed
|
| 54 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
# Video files - compressed
|
| 58 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
HF-OAIZIB-CM.png
ADDED
|
Git LFS Details
|
README.md
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-segmentation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- medical
|
| 9 |
+
- image
|
| 10 |
+
- segmentation
|
| 11 |
+
- MRI
|
| 12 |
+
- knee
|
| 13 |
+
- cartilage
|
| 14 |
+
pretty_name: oaizib-cm
|
| 15 |
+
size_categories:
|
| 16 |
+
- n<1K
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+

|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
## Summary 🌟
|
| 24 |
+
**OAIZIB-CM: 507 knee MRIs and segmentation masks of [5 ROIs](https://huggingface.co/datasets/YongchengYAO/OAIZIB-CM/blob/main/README.md#segmentation-labels)**
|
| 25 |
+
|
| 26 |
+
## Data
|
| 27 |
+
| Source | link |
|
| 28 |
+
| ------------ | ------------------------------------------------------------ |
|
| 29 |
+
| Huggingface | [main](https://huggingface.co/datasets/YongchengYAO/OAIZIB-CM/tree/main) |
|
| 30 |
+
| | [load_dataset-support](https://huggingface.co/datasets/YongchengYAO/OAIZIB-CM/tree/load_dataset-support) |
|
| 31 |
+
| Zenodo | [here](https://zenodo.org/records/14934086)
|
| 32 |
+
| Google Drive | [here](https://drive.google.com/drive/folders/13_afAKSH7ZMOI_Nk2gfoihbJKwafw1l9?usp=share_link) |
|
| 33 |
+
- Huggingface Dataset Branch:
|
| 34 |
+
- `main`: The main branch contains the same files as those in Zenodo and Google Drive
|
| 35 |
+
- `load_dataset-support`: We added HF `load_dataset()` support in this branch (ref: [intended usage 2](https://huggingface.co/datasets/YongchengYAO/OAIZIB-CM#2-load-dataset-or-iterabledataset-from-the-load_dataset-support-branch-%EF%B8%8F))
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
## About
|
| 39 |
+
This is the official release of **OAIZIB-CM** dataset
|
| 40 |
+
- OAIZIB-CM is based on the OAIZIB dataset
|
| 41 |
+
- OAIZIB paper: [Automated Segmentation of Knee Bone and Cartilage combining Statistical Shape Knowledge and Convolutional Neural Networks: Data from the Osteoarthritis Initiative](https://doi.org/10.1016/j.media.2018.11.009)
|
| 42 |
+
- In OAIZIB-CM, tibial cartilage is split into medial and lateral tibial cartilages.
|
| 43 |
+
- OAIZIB-CM includes [CLAIR-Knee-103R](https://github.com/YongchengYAO/CartiMorph/blob/main/Documents/TemplateAtlas.md), consisting of
|
| 44 |
+
- a template image learned from 103 MR images of subjects without radiographic OA
|
| 45 |
+
- corresponding 5-ROI segmentation mask for cartilages and bones
|
| 46 |
+
- corresponding 20-ROI atlas for articular cartilages
|
| 47 |
+
- It is compulsory to cite the paper if you use the dataset
|
| 48 |
+
- [CartiMorph: A framework for automated knee articular cartilage morphometrics](https://doi.org/10.1016/j.media.2023.103035)
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
## Changelog 🔥
|
| 52 |
+
- [10 Oct, 2025] This dataset is integrated into 🔥[MedVision](https://huggingface.co/datasets/YongchengYAO/MedVision)🔥
|
| 53 |
+
- [09 Jul, 2025] `trust_remote_code` is no longer supported in datasets==4.0.0, install with `pip install datasets==3.6.0`
|
| 54 |
+
- [22 Mar, 2025] Add HF `load_dataset()` support in the `load_dataset-support` branch.
|
| 55 |
+
- [27 Feb, 2025] Add the template and atlas [CLAIR-Knee-103R](https://github.com/YongchengYAO/CartiMorph/blob/main/Documents/TemplateAtlas.md)
|
| 56 |
+
- [26 Feb, 2025] Update compulsory citation ([CartiMorph](https://doi.org/10.1016/j.media.2023.103035)) for the dataset
|
| 57 |
+
- [15 Feb, 2025] Update file `imagesTs/oaizib_454_0000.nii.gz`
|
| 58 |
+
- [14 Feb, 2025] Identify corrupted files: case 454
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
## Files
|
| 62 |
+
Images & Labels
|
| 63 |
+
- imagesTr: training images (#404)
|
| 64 |
+
- labelsTr: training segmentation masks (#404)
|
| 65 |
+
- imagesTs: testing images (#103)
|
| 66 |
+
- labelsTs: testing segmentation masks (#103)
|
| 67 |
+
|
| 68 |
+
Data Split & Info
|
| 69 |
+
- `subInfo_train`: list of training data
|
| 70 |
+
- `subInfo_test`: list of testing data
|
| 71 |
+
- `kneeSideInfo`: a file containing knee side information, used in CartiMorph Toolbox
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
## Intended Usage
|
| 75 |
+
### 1. Download Files from the `main` or `load_dataset-support` Branch
|
| 76 |
+
```bash
|
| 77 |
+
#!/bin/bash
|
| 78 |
+
pip install --upgrade huggingface-hub[cli]
|
| 79 |
+
huggingface-cli login --token $HF_TOKEN
|
| 80 |
+
```
|
| 81 |
+
```python
|
| 82 |
+
# python
|
| 83 |
+
from huggingface_hub import snapshot_download
|
| 84 |
+
snapshot_download(repo_id="YongchengYAO/OAIZIB-CM", repo_type='dataset', local_dir="/your/local/folder")
|
| 85 |
+
```
|
| 86 |
+
```python
|
| 87 |
+
# python
|
| 88 |
+
from huggingface_hub import snapshot_download
|
| 89 |
+
snapshot_download(repo_id="YongchengYAO/OAIZIB-CM", repo_type='dataset', revision="load_dataset-support", local_dir="/your/local/folder")
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
### 2. Load `Dataset` or `IterableDataset` from the `load_dataset-support` Branch ‼️
|
| 93 |
+
‼️ Require datasets<=3.6.0
|
| 94 |
+
```python
|
| 95 |
+
>>> from datasets import load_dataset
|
| 96 |
+
|
| 97 |
+
# Load Dataset
|
| 98 |
+
>>> dataset_test = load_dataset("YongchengYAO/OAIZIB-CM", revision="load_dataset-support", trust_remote_code=True, split="test")
|
| 99 |
+
>>> type(dataset_test)
|
| 100 |
+
<class 'datasets.arrow_dataset.Dataset'>
|
| 101 |
+
|
| 102 |
+
# Convert Dataset to IterableDataset: use .to_iterable_dataset()
|
| 103 |
+
>>> iterdataset_test = dataset_test.to_iterable_dataset()
|
| 104 |
+
>>> type(iterdataset_test)
|
| 105 |
+
<class 'datasets.iterable_dataset.IterableDataset'>
|
| 106 |
+
|
| 107 |
+
# Load IterableDataset: add streaming=True
|
| 108 |
+
>>> iterdataset_train = load_dataset("YongchengYAO/OAIZIB-CM", revision="load_dataset-support", trust_remote_code=True, streaming=True, split="train")
|
| 109 |
+
>>> type(iterdataset_train)
|
| 110 |
+
<class 'datasets.iterable_dataset.IterableDataset'>
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
- 🔥 [Differences between Dataset and IterableDataset](https://huggingface.co/docs/datasets/about_mapstyle_vs_iterable#downloading-and-streaming)
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
## Segmentation Labels
|
| 117 |
+
```python
|
| 118 |
+
labels_map = {
|
| 119 |
+
"1": "Femur",
|
| 120 |
+
"2": "Femoral Cartilage",
|
| 121 |
+
"3": "Tibia",
|
| 122 |
+
"4": "Medial Tibial Cartilage",
|
| 123 |
+
"5": "Lateral Tibial Cartilage",
|
| 124 |
+
}
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
## Citations
|
| 128 |
+
The dataset originates from these projects:
|
| 129 |
+
- CartiMorph: https://github.com/YongchengYAO/CartiMorph
|
| 130 |
+
- CartiMorph Toolbox:
|
| 131 |
+
- https://github.com/YongchengYAO/CartiMorph-Toolbox
|
| 132 |
+
- https://github.com/YongchengYAO/CMT-AMAI24paper
|
| 133 |
+
|
| 134 |
+
```
|
| 135 |
+
@article{YAO2024103035,
|
| 136 |
+
title = {CartiMorph: A framework for automated knee articular cartilage morphometrics},
|
| 137 |
+
journal = {Medical Image Analysis},
|
| 138 |
+
author = {Yongcheng Yao and Junru Zhong and Liping Zhang and Sheheryar Khan and Weitian Chen},
|
| 139 |
+
volume = {91},
|
| 140 |
+
pages = {103035},
|
| 141 |
+
year = {2024},
|
| 142 |
+
issn = {1361-8415},
|
| 143 |
+
doi = {https://doi.org/10.1016/j.media.2023.103035}
|
| 144 |
+
}
|
| 145 |
+
```
|
| 146 |
+
```
|
| 147 |
+
@InProceedings{10.1007/978-3-031-82007-6_16,
|
| 148 |
+
author="Yao, Yongcheng
|
| 149 |
+
and Chen, Weitian",
|
| 150 |
+
editor="Wu, Shandong
|
| 151 |
+
and Shabestari, Behrouz
|
| 152 |
+
and Xing, Lei",
|
| 153 |
+
title="Quantifying Knee Cartilage Shape and Lesion: From Image to Metrics",
|
| 154 |
+
booktitle="Applications of Medical Artificial Intelligence",
|
| 155 |
+
year="2025",
|
| 156 |
+
publisher="Springer Nature Switzerland",
|
| 157 |
+
address="Cham",
|
| 158 |
+
pages="162--172"
|
| 159 |
+
}
|
| 160 |
+
```
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
## License
|
| 164 |
+
This dataset is released under the `CC BY-NC 4.0` license.
|
imagesTr.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ad9d09b7812ae967910dcd3e79b04a8f0ef6d9ba481aec52cc99c771fc7ccd5
|
| 3 |
+
size 10032464145
|
imagesTs.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ee7fdab2ff609ebb116953235554395d806e1248ac4fae56d8b733c62e0d42e5
|
| 3 |
+
size 2544663978
|
info.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb2007ba6ea67f49c35d14ffd0ed3dfe003a756ce953d89ba658166afb66b05e
|
| 3 |
+
size 51680
|
labelsTr.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d202f6cd2905723d59e33510f2f49716a83b11aabc71fa71aa84b17aa978ddd
|
| 3 |
+
size 57538129
|
labelsTs.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:72a81672e6af56a1ecff4dbf3ef66c127497288ff8eefe7ac0124994d9623c6d
|
| 3 |
+
size 14122969
|
template_atlas.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:74b2bd232246f25cbfe98f91329de4a16a12bf24acc77d416bde563bea484582
|
| 3 |
+
size 3625715
|