Spaces:
Running
Running
Merge pull request #52 from andreped/colab-notebook
Browse files- README.md +23 -2
- notebooks/aeropath-load-dataset-example.ipynb +0 -0
README.md
CHANGED
|
@@ -17,6 +17,7 @@ app_file: demo/app.py
|
|
| 17 |
[](https://github.com/DAVFoundation/captain-n3m0/blob/master/LICENSE)
|
| 18 |
[](https://github.com/raidionics/AeroPath/actions/workflows/deploy.yml)
|
| 19 |
<a target="_blank" href="https://huggingface.co/spaces/andreped/AeroPath"><img src="https://img.shields.io/badge/🤗%20Hugging%20Face-Spaces-yellow.svg"></a>
|
|
|
|
| 20 |
[](https://doi.org/10.5281/zenodo.10069288)
|
| 21 |
[](https://arxiv.org/abs/2311.01138)
|
| 22 |
|
|
@@ -30,9 +31,29 @@ This repository contains the AeroPath dataset described in ["_AeroPath: An airwa
|
|
| 30 |
|
| 31 |
The dataset is made openly available at [Zenodo](https://zenodo.org/records/10069289) and [the Hugging Face Hub](https://huggingface.co/datasets/andreped/AeroPath). Click any of the two hyperlinks to access the dataset.
|
| 32 |
|
| 33 |
-
## [Dataset
|
| 34 |
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
```
|
| 38 |
└── AeroPath.zip
|
|
|
|
| 17 |
[](https://github.com/DAVFoundation/captain-n3m0/blob/master/LICENSE)
|
| 18 |
[](https://github.com/raidionics/AeroPath/actions/workflows/deploy.yml)
|
| 19 |
<a target="_blank" href="https://huggingface.co/spaces/andreped/AeroPath"><img src="https://img.shields.io/badge/🤗%20Hugging%20Face-Spaces-yellow.svg"></a>
|
| 20 |
+
<a href="https://colab.research.google.com/gist/andreped/6070d1d2914a9ce5847d4b3e687188b7/aeropath-load-dataset-example.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>
|
| 21 |
[](https://doi.org/10.5281/zenodo.10069288)
|
| 22 |
[](https://arxiv.org/abs/2311.01138)
|
| 23 |
|
|
|
|
| 31 |
|
| 32 |
The dataset is made openly available at [Zenodo](https://zenodo.org/records/10069289) and [the Hugging Face Hub](https://huggingface.co/datasets/andreped/AeroPath). Click any of the two hyperlinks to access the dataset.
|
| 33 |
|
| 34 |
+
## [Dataset](https://github.com/raidionics/AeroPath#data)
|
| 35 |
|
| 36 |
+
### [Accessing dataset](https://github.com/raidionics/AeroPath#accessing-dataset)
|
| 37 |
+
|
| 38 |
+
The dataset contains 27 CTs with corresponding airways and lung annotations. The folder structure is described below.
|
| 39 |
+
|
| 40 |
+
The easiest way to access the data is through Python with Hugging Face's [datasets](https://pypi.org/project/datasets/) package:
|
| 41 |
+
```
|
| 42 |
+
from datasets import load_dataset
|
| 43 |
+
|
| 44 |
+
# downloads data from Zenodo through the Hugging Face hub
|
| 45 |
+
# - might take several minutes (~5 minutes in CoLab)
|
| 46 |
+
dataset = load_dataset("andreped/AeroPath")
|
| 47 |
+
print(dataset)
|
| 48 |
+
|
| 49 |
+
# list paths of all available patients and corresponding features (ct/airways/lungs)
|
| 50 |
+
for d in dataset["test"]:
|
| 51 |
+
print(d)
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
A detailed interactive demo on how to load and work with the data can be seen on CoLab: <a href="https://colab.research.google.com/gist/andreped/6070d1d2914a9ce5847d4b3e687188b7/aeropath-load-dataset-example.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>
|
| 55 |
+
|
| 56 |
+
### [Dataset structure](https://github.com/raidionics/AeroPath#data-structure)
|
| 57 |
|
| 58 |
```
|
| 59 |
└── AeroPath.zip
|
notebooks/aeropath-load-dataset-example.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|