Add script to generate local cache
Browse files- .gitignore +1 -0
- generate_local_cache_dataset.py +15 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
__pycache__/
|
generate_local_cache_dataset.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import datasets
|
2 |
+
|
3 |
+
if __name__ == "__main__":
|
4 |
+
clf_ds = datasets.load_dataset(
|
5 |
+
"jherng/rsna-2023-abdominal-trauma-detection", "classification", num_proc=8
|
6 |
+
)
|
7 |
+
masked_clf_ds = datasets.load_dataset(
|
8 |
+
"jherng/rsna-2023-abdominal-trauma-detection", "classification-with-mask", num_proc=8
|
9 |
+
)
|
10 |
+
seg_ds = datasets.load_dataset(
|
11 |
+
"jherng/rsna-2023-abdominal-trauma-detection", "segmentation", num_proc=8
|
12 |
+
)
|
13 |
+
print(clf_ds)
|
14 |
+
print(masked_clf_ds)
|
15 |
+
print(seg_ds)
|