Update README: add he test split path; document train/test sizes
Browse files
README.md
CHANGED
|
@@ -1,90 +1,44 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-sa-4.0
|
| 3 |
task_categories:
|
| 4 |
-
- image-segmentation
|
| 5 |
-
- object-detection
|
| 6 |
language:
|
| 7 |
-
- en
|
| 8 |
tags:
|
| 9 |
-
- medical
|
| 10 |
-
- pathology
|
| 11 |
-
- histopathology
|
| 12 |
-
- h-and-e
|
| 13 |
-
- pd-l1
|
| 14 |
-
- lung
|
| 15 |
-
- nsclc
|
| 16 |
-
- ignite
|
| 17 |
size_categories:
|
| 18 |
-
- n<1K
|
| 19 |
configs:
|
| 20 |
-
- config_name: he
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
- config_name:
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
- config_name:
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
dataset_info:
|
| 43 |
-
config_name: he
|
| 44 |
-
features:
|
| 45 |
-
- name: image
|
| 46 |
-
dtype: image
|
| 47 |
-
- name: mask
|
| 48 |
-
dtype: image
|
| 49 |
-
- name: image_with_context
|
| 50 |
-
dtype: image
|
| 51 |
-
- name: mask_with_context
|
| 52 |
-
dtype: image
|
| 53 |
-
- name: validation_fold
|
| 54 |
-
dtype: string
|
| 55 |
-
- name: patient_id
|
| 56 |
-
dtype: int32
|
| 57 |
-
- name: roi_id
|
| 58 |
-
dtype: int32
|
| 59 |
-
- name: name
|
| 60 |
-
dtype: string
|
| 61 |
-
- name: source
|
| 62 |
-
dtype: string
|
| 63 |
-
- name: specimen_type
|
| 64 |
-
dtype: string
|
| 65 |
-
- name: organ
|
| 66 |
-
dtype: string
|
| 67 |
-
- name: histological_subtype
|
| 68 |
-
dtype: string
|
| 69 |
-
- name: stain
|
| 70 |
-
dtype: string
|
| 71 |
-
- name: scanner
|
| 72 |
-
dtype: string
|
| 73 |
-
- name: shape
|
| 74 |
-
dtype: string
|
| 75 |
-
- name: area_mm2
|
| 76 |
-
dtype: float32
|
| 77 |
-
- name: original_tcga_id
|
| 78 |
-
dtype: string
|
| 79 |
-
splits:
|
| 80 |
-
- name: train
|
| 81 |
-
num_bytes: 2700615464
|
| 82 |
-
num_examples: 269
|
| 83 |
-
- name: test
|
| 84 |
-
num_bytes: 1263135677
|
| 85 |
-
num_examples: 139
|
| 86 |
-
download_size: 3964084999
|
| 87 |
-
dataset_size: 3963751141
|
| 88 |
---
|
| 89 |
|
| 90 |
# IGNITE Data Toolkit (mirror)
|
|
@@ -95,7 +49,7 @@ and accompanied by [DIAGNijmegen/ignite-data-toolkit](https://github.com/DIAGNij
|
|
| 95 |
The dataset accompanies *"A tissue and cell-level annotated H&E and PD-L1 histopathology image
|
| 96 |
dataset in non-small cell lung cancer"* ([arXiv:2507.16855](https://arxiv.org/abs/2507.16855)).
|
| 97 |
|
| 98 |
-
**License:** [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)
|
| 99 |
non-commercial, share-alike. Attribution to the original authors is required.
|
| 100 |
|
| 101 |
## Contents
|
|
@@ -112,6 +66,13 @@ The release splits into three task-defined subsets, exposed here as named config
|
|
| 112 |
|
| 113 |
## H&E tissue segmentation (`he` config)
|
| 114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
Each row is **one ROI** with paired image/mask in two field-of-view variants:
|
| 116 |
|
| 117 |
| Column | Type | Description |
|
|
@@ -120,7 +81,7 @@ Each row is **one ROI** with paired image/mask in two field-of-view variants:
|
|
| 120 |
| `mask` | `Image` | 16-class pixel mask aligned to `image` |
|
| 121 |
| `image_with_context` | `Image` | Same ROI extended to a 1792x1792 view (annotated context) |
|
| 122 |
| `mask_with_context` | `Image` | 16-class pixel mask aligned to `image_with_context` |
|
| 123 |
-
| `validation_fold` | string | 5-fold CV assignment (`fold0`..`fold4`)
|
| 124 |
| `patient_id` | int32 | Patient identifier |
|
| 125 |
| `roi_id` | int32 | ROI index within patient |
|
| 126 |
| `name` | string | `patient<id>_he_roi<idx>` (matches the original release) |
|
|
@@ -148,14 +109,18 @@ Labels (also shipped as `he_label_map.json`):
|
|
| 148 |
| 7 | Fatty tissue | 16 | Keratinization |
|
| 149 |
| 8 | Necrotic tissue | | |
|
| 150 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
> **Mirror-specific note:** In the original Zenodo release, base ROI masks (the inner-crop view)
|
| 152 |
> store class label `L` as the byte value `(256 - L) mod 256` (e.g. label 4 -> byte 252).
|
| 153 |
> The `_with_context` masks already store labels directly. In this HuggingFace mirror **both
|
| 154 |
-
> `mask` and `mask_with_context` are written with the canonical 0..16 labels**
|
| 155 |
> pre-decoded during upload, so downstream code does not need to handle the encoding quirk.
|
| 156 |
|
| 157 |
-
The
|
| 158 |
-
|
| 159 |
|
| 160 |
## PD-L1 / nuclei detection (`pdl1`, `nuclei` configs)
|
| 161 |
|
|
@@ -181,9 +146,10 @@ Splits follow `data_overview.csv` directly (no fold column for the detection tas
|
|
| 181 |
```python
|
| 182 |
from datasets import load_dataset
|
| 183 |
|
| 184 |
-
# H&E tissue segmentation
|
| 185 |
-
|
| 186 |
-
|
|
|
|
| 187 |
|
| 188 |
# PD-L1+ tumor cell detection
|
| 189 |
pdl1 = load_dataset("Angelou0516/IGNITE", "pdl1")
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-sa-4.0
|
| 3 |
task_categories:
|
| 4 |
+
- image-segmentation
|
| 5 |
+
- object-detection
|
| 6 |
language:
|
| 7 |
+
- en
|
| 8 |
tags:
|
| 9 |
+
- medical
|
| 10 |
+
- pathology
|
| 11 |
+
- histopathology
|
| 12 |
+
- h-and-e
|
| 13 |
+
- pd-l1
|
| 14 |
+
- lung
|
| 15 |
+
- nsclc
|
| 16 |
+
- ignite
|
| 17 |
size_categories:
|
| 18 |
+
- n<1K
|
| 19 |
configs:
|
| 20 |
+
- config_name: he
|
| 21 |
+
data_files:
|
| 22 |
+
- split: train
|
| 23 |
+
path: he/train-*
|
| 24 |
+
- split: test
|
| 25 |
+
path: he/test-*
|
| 26 |
+
- config_name: pdl1
|
| 27 |
+
data_files:
|
| 28 |
+
- split: train
|
| 29 |
+
path: pdl1/train-*
|
| 30 |
+
- split: validation
|
| 31 |
+
path: pdl1/validation-*
|
| 32 |
+
- split: test
|
| 33 |
+
path: pdl1/test-*
|
| 34 |
+
- config_name: nuclei
|
| 35 |
+
data_files:
|
| 36 |
+
- split: train
|
| 37 |
+
path: nuclei/train-*
|
| 38 |
+
- split: validation
|
| 39 |
+
path: nuclei/validation-*
|
| 40 |
+
- split: test
|
| 41 |
+
path: nuclei/test-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
---
|
| 43 |
|
| 44 |
# IGNITE Data Toolkit (mirror)
|
|
|
|
| 49 |
The dataset accompanies *"A tissue and cell-level annotated H&E and PD-L1 histopathology image
|
| 50 |
dataset in non-small cell lung cancer"* ([arXiv:2507.16855](https://arxiv.org/abs/2507.16855)).
|
| 51 |
|
| 52 |
+
**License:** [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) -
|
| 53 |
non-commercial, share-alike. Attribution to the original authors is required.
|
| 54 |
|
| 55 |
## Contents
|
|
|
|
| 66 |
|
| 67 |
## H&E tissue segmentation (`he` config)
|
| 68 |
|
| 69 |
+
Splits follow `data_overview.csv`:
|
| 70 |
+
|
| 71 |
+
| Split | ROIs | Notes |
|
| 72 |
+
|-------|-----:|------------------------------------------------------------------|
|
| 73 |
+
| train | 269 | Train pool — paper uses 5-fold CV via the `validation_fold` col. |
|
| 74 |
+
| test | 139 | Held-out evaluation set (62 TCGA + 77 Radboud ROIs). |
|
| 75 |
+
|
| 76 |
Each row is **one ROI** with paired image/mask in two field-of-view variants:
|
| 77 |
|
| 78 |
| Column | Type | Description |
|
|
|
|
| 81 |
| `mask` | `Image` | 16-class pixel mask aligned to `image` |
|
| 82 |
| `image_with_context` | `Image` | Same ROI extended to a 1792x1792 view (annotated context) |
|
| 83 |
| `mask_with_context` | `Image` | 16-class pixel mask aligned to `image_with_context` |
|
| 84 |
+
| `validation_fold` | string | 5-fold CV assignment (`fold0`..`fold4`); empty for test rows |
|
| 85 |
| `patient_id` | int32 | Patient identifier |
|
| 86 |
| `roi_id` | int32 | ROI index within patient |
|
| 87 |
| `name` | string | `patient<id>_he_roi<idx>` (matches the original release) |
|
|
|
|
| 109 |
| 7 | Fatty tissue | 16 | Keratinization |
|
| 110 |
| 8 | Necrotic tissue | | |
|
| 111 |
|
| 112 |
+
The paper's evaluation pipeline treats class `0` ("Unannotated", i.e. surrounding context
|
| 113 |
+
in `_with_context` masks) as an **ignore label** during Dice/IoU computation. Downstream
|
| 114 |
+
loaders should mirror that to reproduce paper-comparable scores.
|
| 115 |
+
|
| 116 |
> **Mirror-specific note:** In the original Zenodo release, base ROI masks (the inner-crop view)
|
| 117 |
> store class label `L` as the byte value `(256 - L) mod 256` (e.g. label 4 -> byte 252).
|
| 118 |
> The `_with_context` masks already store labels directly. In this HuggingFace mirror **both
|
| 119 |
+
> `mask` and `mask_with_context` are written with the canonical 0..16 labels** - base masks were
|
| 120 |
> pre-decoded during upload, so downstream code does not need to handle the encoding quirk.
|
| 121 |
|
| 122 |
+
The paper recommends training-time 5-fold CV via the `validation_fold` column on the `train`
|
| 123 |
+
split, and reports final numbers on the held-out `test` split.
|
| 124 |
|
| 125 |
## PD-L1 / nuclei detection (`pdl1`, `nuclei` configs)
|
| 126 |
|
|
|
|
| 146 |
```python
|
| 147 |
from datasets import load_dataset
|
| 148 |
|
| 149 |
+
# H&E tissue segmentation
|
| 150 |
+
he_train = load_dataset("Angelou0516/IGNITE", "he", split="train") # 269 ROIs
|
| 151 |
+
he_test = load_dataset("Angelou0516/IGNITE", "he", split="test") # 139 ROIs
|
| 152 |
+
print(he_test[0]["mask_with_context"]) # PIL Image L-mode, labels 0..16
|
| 153 |
|
| 154 |
# PD-L1+ tumor cell detection
|
| 155 |
pdl1 = load_dataset("Angelou0516/IGNITE", "pdl1")
|