Update README.md
Browse files
README.md
CHANGED
@@ -10,6 +10,7 @@ Specifically, we have extended two public datasets for multi-grained medical ima
|
|
10 |
- MIMIC-IR is extended from [MIMIC-CXR](https://physionet.org/content/mimic-cxr/2.1.0/), containing 377,110 images and 90 anatomy structures.
|
11 |
- CTRATE-IR is extended from [CTRATE](https://huggingface.co/datasets/ibrahimhamamci/CT-RATE), containing 25,692 images and 48 anatomy structures.
|
12 |
|
|
|
13 |
**Note:** For the MIMIC-IR dataset, you need to manually merge and decompress the files.
|
14 |
After downloading all split parts (from `MIMIC-IR.tar.gz.part00` to `MIMIC-IR.tar.gz.part08`), execute the following commands in the same directory:
|
15 |
```
|
@@ -17,7 +18,8 @@ cat MIMIC-IR.tar.gz.part* > MIMIC-IR.tar.gz
|
|
17 |
tar xvzf MIMIC-IR.tar.gz
|
18 |
```
|
19 |
|
20 |
-
|
|
|
21 |
```python
|
22 |
import pandas as pd
|
23 |
import numpy as np
|
@@ -46,7 +48,9 @@ print(f'Sample {id_ls[sample_B_idx]} findings on {anatomy_condition}: {findings_
|
|
46 |
print(f'Relevance score: {simi_tab[sample_A_idx, sample_B_idx]}')
|
47 |
```
|
48 |
|
49 |
-
Note
|
|
|
|
|
50 |
```python
|
51 |
import os
|
52 |
import json
|
@@ -78,8 +82,6 @@ print(f'Sample {sample_B_id} reports: {sample_B_report}\n')
|
|
78 |
print(f'Whole image relevance score: {simi_tab[sample_A_idx, sample_B_idx]}')
|
79 |
```
|
80 |
|
81 |
-
|
82 |
-
|
83 |
For raw image data, you can download them from [CTRATE](https://huggingface.co/datasets/ibrahimhamamci/CT-RATE) (or [RadGenome-ChestCT](https://huggingface.co/datasets/RadGenome/RadGenome-ChestCT)) and [MIMIC-CXR](https://physionet.org/content/mimic-cxr/2.1.0/). We keep all the sample id consistent so you can easily find them.
|
84 |
|
85 |
|
|
|
10 |
- MIMIC-IR is extended from [MIMIC-CXR](https://physionet.org/content/mimic-cxr/2.1.0/), containing 377,110 images and 90 anatomy structures.
|
11 |
- CTRATE-IR is extended from [CTRATE](https://huggingface.co/datasets/ibrahimhamamci/CT-RATE), containing 25,692 images and 48 anatomy structures.
|
12 |
|
13 |
+
|
14 |
**Note:** For the MIMIC-IR dataset, you need to manually merge and decompress the files.
|
15 |
After downloading all split parts (from `MIMIC-IR.tar.gz.part00` to `MIMIC-IR.tar.gz.part08`), execute the following commands in the same directory:
|
16 |
```
|
|
|
18 |
tar xvzf MIMIC-IR.tar.gz
|
19 |
```
|
20 |
|
21 |
+
|
22 |
+
A simple demo to read the data (take CTRATE-IR for instance):
|
23 |
```python
|
24 |
import pandas as pd
|
25 |
import numpy as np
|
|
|
48 |
print(f'Relevance score: {simi_tab[sample_A_idx, sample_B_idx]}')
|
49 |
```
|
50 |
|
51 |
+
**Note:** the score have been normalized to 0~100 and stored in uint8.
|
52 |
+
|
53 |
+
We also provide the whole image-level relevance quantified based on their entire reports:
|
54 |
```python
|
55 |
import os
|
56 |
import json
|
|
|
82 |
print(f'Whole image relevance score: {simi_tab[sample_A_idx, sample_B_idx]}')
|
83 |
```
|
84 |
|
|
|
|
|
85 |
For raw image data, you can download them from [CTRATE](https://huggingface.co/datasets/ibrahimhamamci/CT-RATE) (or [RadGenome-ChestCT](https://huggingface.co/datasets/RadGenome/RadGenome-ChestCT)) and [MIMIC-CXR](https://physionet.org/content/mimic-cxr/2.1.0/). We keep all the sample id consistent so you can easily find them.
|
86 |
|
87 |
|