Datasets:
The dataset viewer is not available for this subset.
Exception: HfHubHTTPError
Message: 500 Server Error: Internal Server Error for url: https://huggingface.co/api/datasets/anonymous-neurips-ED/CTSpinoPelvic1K-Sample/tree/37c5b0c6ffddef254cea7b9d6da3707ad9b57371?recursive=True&expand=False (Request ID: Root=1-69fe0737-68e29d442ccb005b731e0fc4;68d28874-8399-4621-a994-4bca1c5ea91c)
Internal Error - We're working hard to fix this as soon as possible!
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 65, in compute_split_names_from_streaming_response
for split in get_dataset_split_names(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 340, in get_dataset_split_names
info = get_dataset_config_info(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 268, in get_dataset_config_info
builder = load_dataset_builder(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1315, in load_dataset_builder
dataset_module = dataset_module_factory(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1207, in dataset_module_factory
raise e1 from None
File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1182, in dataset_module_factory
).get_module()
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 638, in get_module
patterns = get_data_patterns(base_path, download_config=self.download_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/data_files.py", line 493, in get_data_patterns
return _get_data_files_patterns(resolver)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/data_files.py", line 290, in _get_data_files_patterns
data_files = pattern_resolver(pattern)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/data_files.py", line 372, in resolve_pattern
for filepath, info in fs.glob(fs_pattern, detail=True, **glob_kwargs).items():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/huggingface_hub/hf_file_system.py", line 521, in glob
return super().glob(path, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/fsspec/spec.py", line 604, in glob
allpaths = self.find(root, maxdepth=depth, withdirs=True, detail=True, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/huggingface_hub/hf_file_system.py", line 563, in find
out = self._ls_tree(path, recursive=True, refresh=refresh, revision=resolved_path.revision, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/huggingface_hub/hf_file_system.py", line 446, in _ls_tree
self._ls_tree(
File "/usr/local/lib/python3.12/site-packages/huggingface_hub/hf_file_system.py", line 463, in _ls_tree
for path_info in tree:
^^^^
File "/usr/local/lib/python3.12/site-packages/huggingface_hub/hf_api.py", line 3140, in list_repo_tree
for path_info in paginate(path=tree_url, headers=headers, params={"recursive": recursive, "expand": expand}):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/huggingface_hub/utils/_pagination.py", line 37, in paginate
hf_raise_for_status(r)
File "/usr/local/lib/python3.12/site-packages/huggingface_hub/utils/_http.py", line 482, in hf_raise_for_status
raise _format(HfHubHTTPError, str(e), response) from e
huggingface_hub.errors.HfHubHTTPError: 500 Server Error: Internal Server Error for url: https://huggingface.co/api/datasets/anonymous-neurips-ED/CTSpinoPelvic1K-Sample/tree/37c5b0c6ffddef254cea7b9d6da3707ad9b57371?recursive=True&expand=False (Request ID: Root=1-69fe0737-68e29d442ccb005b731e0fc4;68d28874-8399-4621-a994-4bca1c5ea91c)
Internal Error - We're working hard to fix this as soon as possible!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.
CTSpinoPelvic1K
A fused spine + pelvis 3D CT segmentation dataset built by patient-level crosswalk between three public sources:
- TCIA CT COLONOGRAPHY — DICOM CT volumes (prone + supine per patient)
- CTSpine1K (COLONOG subset) — VerSe-convention vertebral label masks
- CTPelvic1K dataset2 — sacrum + bilateral hip label masks
Annotations are placed onto the TCIA CT volume with the highest bone coverage (HU > 200), separately per anatomy. For ~650 patients both annotations land on the same series (fused cases); for the rest, spine and pelvic labels target different prone/supine acquisitions (separate cases).
Labels (10-class)
| ID | Name | Source |
|---|---|---|
| 0 | background | — |
| 1 | L1 | CTSpine1K (VerSe label 20 → 1) |
| 2 | L2 | CTSpine1K (VerSe label 21 → 2) |
| 3 | L3 | CTSpine1K (VerSe label 22 → 3) |
| 4 | L4 | CTSpine1K (VerSe label 23 → 4) |
| 5 | L5 | CTSpine1K (VerSe label 24 → 5) |
| 6 | L6 / LSTV | CTSpine1K (VerSe label 25 → 6) — lumbarized S1 |
| 7 | sacrum | CTPelvic1K (dataset2 label 1 → 7) |
| 8 | left hip | CTPelvic1K (dataset2 label 2 → 8) |
| 9 | right hip | CTPelvic1K (dataset2 label 3 → 9) |
CTPelvic1K's sacrum takes priority over CTSpine1K's sacrum (label 26) to avoid the two labelling conventions colliding in cases of lumbosacral transitional vertebrae.
Orientation
All volumes are canonicalised to PIR (Posterior-Inferior-Right). The CT and its label map share exactly the same 4×4 affine; no resampling is needed before training.
LSTV annotation
Each case carries two complementary LSTV (lumbosacral transitional vertebra) annotations:
lstv_vertebral— derived from CTSpine1K by counting lumbar labels in the segmentation (4 → sacralization, 5 → normal, 6 → lumbarization).lstv_pelvic— derived from CTPelvic1K filename qualifiers (any substring containing "sacralization" → sacralization).lstv_agreement—Truewhen both sources agree,Falsewhen they disagree,Nonewhen either side is uninformative.lstv_class— integer 0–3 summarising the dominant call (0=normal, 1=lumbarization, 2=semi-sacralization, 3=sacralization). Pelvic label takes priority.
Splits
70 / 15 / 15 train / val / test, stratified by (lstv_class × match_type) so
each split contains the rare sacralization and lumbarization classes.
File format
Each case is a single .npz file under data/<split>/token_<N>.npz:
import numpy as np, json
d = np.load("token_17.npz", allow_pickle=False)
ct = d["ct"] # int16 (Z, Y, X) HU
label = d["label"] # uint8 (Z, Y, X) 0..9
affine = d["affine"] # float32 (4, 4) RAS affine
meta = json.loads(str(d["meta"]))
print(meta["match_type"], meta["lstv_class"], meta["spine_bone_pct"])
Quickstart — PyTorch
from dataset_interface import CTSpinoPelvicDataset
from torch.utils.data import DataLoader
ds = CTSpinoPelvicDataset(
root = "anonymous-mlhc/CTSpinoPelvic1K",
split = "train",
cache_dir = "~/.cache/ctspinopelvic1k",
)
dl = DataLoader(ds, batch_size=1, shuffle=True)
for batch in dl:
ct, label = batch["ct"], batch["label"] # (B,1,Z,Y,X) / (B,Z,Y,X)
...
Quickstart — MONAI
from monai.transforms import (
Compose, RandCropByPosNegLabeld, RandFlipd, NormalizeIntensityd,
)
from dataset_interface import CTSpinoPelvicDataset
transforms = Compose([
NormalizeIntensityd(keys="ct", subtrahend=0, divisor=1000),
RandCropByPosNegLabeld(keys=("ct","label"), label_key="label",
spatial_size=(96,96,96), pos=2, neg=1, num_samples=2),
RandFlipd(keys=("ct","label"), prob=0.5, spatial_axis=(0,1,2)),
])
ds = CTSpinoPelvicDataset(root="anonymous-mlhc/CTSpinoPelvic1K",
split="train", transform=transforms)
Citation
Please cite the source datasets (CTSpine1K, CTPelvic1K, TCIA CT COLONOGRAPHY)
alongside this derivative release. BibTeX entries are provided in CITATION.cff.
License
- Source datasets — CT COLONOGRAPHY (TCIA), CTSpine1K, CTPelvic1K — retain their respective licenses.
- Derivative fused labels, splits, and code: CC BY-NC 4.0 (non-commercial).
- Downloads last month
- 22