andreped commited on
Commit
4e8362d
2 Parent(s): 8cf37ac a0bc604

Merge pull request #52 from andreped/colab-notebook

Browse files
README.md CHANGED
@@ -17,6 +17,7 @@ app_file: demo/app.py
17
  [![license](https://img.shields.io/github/license/DAVFoundation/captain-n3m0.svg?style=flat-square)](https://github.com/DAVFoundation/captain-n3m0/blob/master/LICENSE)
18
  [![CI/CD](https://github.com/raidionics/AeroPath/actions/workflows/deploy.yml/badge.svg)](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
  [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10069288.svg)](https://doi.org/10.5281/zenodo.10069288)
21
  [![paper](https://img.shields.io/badge/arXiv-preprint-D12424)](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 structure](https://github.com/raidionics/AeroPath#data-structure)
34
 
35
- The dataset contains 27 CTs with corresponding airways and lung annotations. The folder structure is described below:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
  ```
38
  └── AeroPath.zip
 
17
  [![license](https://img.shields.io/github/license/DAVFoundation/captain-n3m0.svg?style=flat-square)](https://github.com/DAVFoundation/captain-n3m0/blob/master/LICENSE)
18
  [![CI/CD](https://github.com/raidionics/AeroPath/actions/workflows/deploy.yml/badge.svg)](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
  [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10069288.svg)](https://doi.org/10.5281/zenodo.10069288)
22
  [![paper](https://img.shields.io/badge/arXiv-preprint-D12424)](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