yw3325 commited on
Commit
48d1610
·
verified ·
1 Parent(s): ee53185

Upload 4 files

Browse files
Files changed (4) hide show
  1. README.md +85 -11
  2. viewer/dpo.parquet +3 -0
  3. viewer/train.parquet +3 -0
  4. viewer/valid.parquet +3 -0
README.md CHANGED
@@ -10,56 +10,130 @@ tags:
10
  - chest-ct
11
  - radiology
12
  - ct-rate
 
13
  size_categories:
14
  - 10K<n<100K
15
  pretty_name: CT-RATE-AB
 
 
 
 
 
 
 
 
 
 
 
16
  ---
17
 
18
  # CT-RATE-AB
19
 
20
  Vision-language annotations for chest CT abnormality reporting, derived from
21
  [CT-RATE](https://huggingface.co/datasets/ibrahimhamamci/CT-RATE) and
22
- formatted in the LLaVA conversation schema.
 
23
 
24
  > ⚠️ Research use only. Not a medical device. Do not use for clinical decisions.
25
 
26
- ## Files
27
 
28
- | File | # Samples |
29
- |------|-----------|
30
- | `CT-RATE-AB-train.json` | 46,709 |
31
- | `CT-RATE-AB-valid.json` | 3,039 |
 
32
 
33
- Train/valid splits inherit the official CT-RATE partition (no patient overlap).
 
 
34
 
35
- ## Data format
36
 
37
- LLaVA video-conversation schema. Each entry:
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  ```json
40
  {
41
  "id": "train_1_a_1",
42
  "videos": ["train_1_a_1.mp4"],
43
  "conversations": [
44
  {"from": "human", "value": "<video>\nGenerate a report for this patient."},
45
- {"from": "gpt", "value": "Lung: ...\n\nTrachea and Bronchie: ...\n\nMediastinum: ...\n\nBone: ...\n\nAbdomen: ...\n\nOthers: ..."}
46
  ]
47
  }
48
  ```
49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  The assistant response is a structured report organized by anatomy:
51
  *Lung*, *Trachea and Bronchie*, *Mediastinum*, *Bone*, *Abdomen*, *Others*.
 
 
52
 
53
  ## Obtaining the CT volumes
54
 
55
  This repository contains **only annotations**. To obtain the corresponding CT
56
  data, request access to CT-RATE at
57
  <https://huggingface.co/datasets/ibrahimhamamci/CT-RATE>. The `id` field in
58
- each entry maps directly to the CT-RATE volume identifier.
 
59
 
60
  ## License
61
 
62
  Released under **CC BY-NC-SA 4.0**, consistent with the upstream CT-RATE
63
  license.
64
 
 
 
 
 
 
 
 
 
 
 
 
65
 
 
 
 
 
 
 
 
 
 
 
 
10
  - chest-ct
11
  - radiology
12
  - ct-rate
13
+ - dpo
14
  size_categories:
15
  - 10K<n<100K
16
  pretty_name: CT-RATE-AB
17
+ configs:
18
+ - config_name: default
19
+ data_files:
20
+ - split: train
21
+ path: viewer/train.parquet
22
+ - split: valid
23
+ path: viewer/valid.parquet
24
+ - config_name: dpo
25
+ data_files:
26
+ - split: train
27
+ path: viewer/dpo.parquet
28
  ---
29
 
30
  # CT-RATE-AB
31
 
32
  Vision-language annotations for chest CT abnormality reporting, derived from
33
  [CT-RATE](https://huggingface.co/datasets/ibrahimhamamci/CT-RATE) and
34
+ formatted in the LLaVA conversation schema. Includes both an SFT split
35
+ (train / valid) and a DPO preference set.
36
 
37
  > ⚠️ Research use only. Not a medical device. Do not use for clinical decisions.
38
 
39
+ ## Splits
40
 
41
+ | Subset | # Samples | Purpose |
42
+ |--------|-----------|--------------------------|
43
+ | train | 46,709 | SFT training |
44
+ | valid | 3,039 | Validation |
45
+ | DPO | 46,709 | DPO preference fine-tuning |
46
 
47
+ The DPO entries share `id` values with the SFT train set (the `chosen`
48
+ response equals the SFT `gpt` value); train and valid splits inherit the
49
+ official CT-RATE partition (no patient overlap).
50
 
51
+ ## ⚠️ Two file formats in this repo
52
 
53
+ This repository ships **two parallel views** of the same data:
54
 
55
+ | Purpose | Files | Format |
56
+ |------------------------|------------------------------------------|--------|
57
+ | **Training (use these)** | `CT-RATE-AB-train.json`, `CT-RATE-AB-valid.json`, `CT-RATE-AB-DPO.json` | Raw LLaVA-format JSON |
58
+ | **Dataset Viewer only** | `viewer/train.parquet`, `viewer/valid.parquet`, `viewer/dpo.parquet` | Simplified parquet |
59
+
60
+ **For training, always load the JSON files.** They preserve the full LLaVA
61
+ conversation schema (`videos`, `conversations` with `<video>` token, etc.)
62
+ expected by standard multimodal training pipelines.
63
+
64
+ The parquet files in `viewer/` exist **only so the Hugging Face Dataset
65
+ Viewer shows the report text cleanly** — they strip out the `videos`
66
+ filename column (no videos are hosted here) and the boilerplate human
67
+ prompt, leaving just `id` and the report. **Do not use parquet for
68
+ training.** The two views are guaranteed identical in content; they
69
+ differ only in field layout.
70
+
71
+ ## Data format (the JSON files)
72
+
73
+ Standard LLaVA video-conversation schema.
74
+
75
+ **`CT-RATE-AB-train.json` / `CT-RATE-AB-valid.json`** (SFT):
76
  ```json
77
  {
78
  "id": "train_1_a_1",
79
  "videos": ["train_1_a_1.mp4"],
80
  "conversations": [
81
  {"from": "human", "value": "<video>\nGenerate a report for this patient."},
82
+ {"from": "gpt", "value": "Lung: ...\n\nMediastinum: ...\n\n..."}
83
  ]
84
  }
85
  ```
86
 
87
+ **`CT-RATE-AB-DPO.json`** (DPO preference pairs):
88
+ ```json
89
+ {
90
+ "id": "train_5251_a_1",
91
+ "videos": ["train_5251_a_1.mp4"],
92
+ "conversations": [
93
+ {"from": "human", "value": "<video>\nGenerate a report for this patient."}
94
+ ],
95
+ "chosen": {"from": "gpt", "value": "Lung: ... atelectatic changes ..."},
96
+ "rejected": {"from": "gpt", "value": "Lung: ... ground-glass opacities ..."}
97
+ }
98
+ ```
99
+
100
  The assistant response is a structured report organized by anatomy:
101
  *Lung*, *Trachea and Bronchie*, *Mediastinum*, *Bone*, *Abdomen*, *Others*.
102
+ The human prompt is identical across all samples:
103
+ `<video>\nGenerate a report for this patient.`
104
 
105
  ## Obtaining the CT volumes
106
 
107
  This repository contains **only annotations**. To obtain the corresponding CT
108
  data, request access to CT-RATE at
109
  <https://huggingface.co/datasets/ibrahimhamamci/CT-RATE>. The `id` field in
110
+ each entry maps directly to the CT-RATE volume identifier (and to the mp4
111
+ filename listed in `videos`, if you render videos locally).
112
 
113
  ## License
114
 
115
  Released under **CC BY-NC-SA 4.0**, consistent with the upstream CT-RATE
116
  license.
117
 
118
+ ## Citation
119
+
120
+ **CT-RATE-AB (MICCAI 2026):**
121
+ ```bibtex
122
+ @inproceedings{TODO_ctrateab2026,
123
+ title = {TODO},
124
+ author = {TODO},
125
+ booktitle = {MICCAI},
126
+ year = {2026}
127
+ }
128
+ ```
129
 
130
+ **CT-RATE (upstream):**
131
+ ```bibtex
132
+ @article{hamamci2026generalist,
133
+ title = {Generalist foundation models from a multimodal dataset for 3D
134
+ computed tomography},
135
+ author = {Hamamci, Ibrahim Ethem and others},
136
+ journal = {Nature Biomedical Engineering},
137
+ year = {2026}
138
+ }
139
+ ```
viewer/dpo.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b261dc8ba1c4b570959270dbf5372d50c477f429b2512102b27cd0d3174860b
3
+ size 14797206
viewer/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1fbcc5dccfda363026aaf3fba8739a7923dcf87ee316ec56336454986170122c
3
+ size 7541049
viewer/valid.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:001abea3638d58a8a4d11a8bc5c91508aa271999505d3ecee382427201fad9dd
3
+ size 356743