Commit
·
38b0858
1
Parent(s):
39d786a
conform to licence agreement
Browse files- README.md +0 -20
- download_metadata_label.py +31 -0
- metadata/Metadata_Attributes.xlsx +0 -0
- metadata/train_metadata.csv +0 -3
- metadata/validation_metadata.csv +0 -0
- multi_abnormality_labels/train_predicted_labels.csv +0 -0
- multi_abnormality_labels/valid_predicted_labels.csv +0 -0
- radiology_text_reports/train_reports.csv +0 -3
- radiology_text_reports/validation_reports.csv +0 -0
README.md
CHANGED
|
@@ -1,26 +1,6 @@
|
|
| 1 |
---
|
| 2 |
title: "DRR-RATE Dataset"
|
| 3 |
license: cc-by-nc-sa-4.0
|
| 4 |
-
|
| 5 |
-
configs:
|
| 6 |
-
- config_name: labels
|
| 7 |
-
data_files:
|
| 8 |
-
- split: train
|
| 9 |
-
path: "multi_abnormality_labels/train_predicted_labels.csv"
|
| 10 |
-
- split: validation
|
| 11 |
-
path: "multi_abnormality_labels/valid_predicted_labels.csv"
|
| 12 |
-
- config_name: reports
|
| 13 |
-
data_files:
|
| 14 |
-
- split: train
|
| 15 |
-
path: "radiology_text_reports/train_reports.csv"
|
| 16 |
-
- split: validation
|
| 17 |
-
path: "radiology_text_reports/validation_reports.csv"
|
| 18 |
-
- config_name: metadata
|
| 19 |
-
data_files:
|
| 20 |
-
- split: train
|
| 21 |
-
path: "metadata/train_metadata.csv"
|
| 22 |
-
- split: validation
|
| 23 |
-
path: "metadata/validation_metadata.csv"
|
| 24 |
---
|
| 25 |
|
| 26 |
# DRR-RATE Dataset
|
|
|
|
| 1 |
---
|
| 2 |
title: "DRR-RATE Dataset"
|
| 3 |
license: cc-by-nc-sa-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
# DRR-RATE Dataset
|
download_metadata_label.py
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import shutil
|
| 2 |
+
|
| 3 |
+
from huggingface_hub import hf_hub_download
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
hf_token = 'HUGGINGFACE_API_KEY'
|
| 7 |
+
repo_id = 'ibrahimhamamci/CT-RATE'
|
| 8 |
+
directories = {
|
| 9 |
+
'metadata': ['Metadata_Attributes.xlsx', 'train_metadata.csv', 'validation_metadata.csv'],
|
| 10 |
+
'multi_abnormality_labels': ['train_predicted_labels.csv', 'valid_predicted_labels.csv'],
|
| 11 |
+
'radiology_text_reports': ['train_reports.csv', 'validation_reports.csv']
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
# Download files from each directory
|
| 15 |
+
for directory, files_to_download in directories.items():
|
| 16 |
+
for file_name in files_to_download:
|
| 17 |
+
file_path = f"{directory}/{file_name}"
|
| 18 |
+
hf_hub_download(
|
| 19 |
+
repo_id=repo_id,
|
| 20 |
+
repo_type='dataset',
|
| 21 |
+
token=hf_token,
|
| 22 |
+
subfolder='dataset',
|
| 23 |
+
filename=file_path,
|
| 24 |
+
cache_dir='./',
|
| 25 |
+
local_dir='./',
|
| 26 |
+
local_dir_use_symlinks=False)
|
| 27 |
+
shutil.move(f'dataset/{directory}', directory)
|
| 28 |
+
|
| 29 |
+
shutil.rmtree('./dataset')
|
| 30 |
+
shutil.rmtree('./datasets--ibrahimhamamci--CT-RATE')
|
| 31 |
+
|
metadata/Metadata_Attributes.xlsx
DELETED
|
Binary file (11.9 kB)
|
|
|
metadata/train_metadata.csv
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:25766453568df5bb0b26de3018e98736f968e7fbd9e9028c8593d5e6239df960
|
| 3 |
-
size 14780692
|
|
|
|
|
|
|
|
|
|
|
|
metadata/validation_metadata.csv
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
multi_abnormality_labels/train_predicted_labels.csv
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
multi_abnormality_labels/valid_predicted_labels.csv
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
radiology_text_reports/train_reports.csv
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:43989c50abc06e3f18db2854b77e12a406d484773b18f0b56c4dccf27c69bff4
|
| 3 |
-
size 79525842
|
|
|
|
|
|
|
|
|
|
|
|
radiology_text_reports/validation_reports.csv
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|