Datasets:
Iulia Elisa
commited on
Commit
•
0d654ec
1
Parent(s):
49715f1
update download options
Browse files
README.md
CHANGED
@@ -67,29 +67,24 @@ Please check [Dataset Structure](Datasets-Structure.md) for a more detailed stru
|
|
67 |
|
68 |
# Downloading the dataset
|
69 |
|
70 |
-
|
71 |
|
72 |
-
```
|
73 |
-
|
74 |
-
cd XAMI-dataset
|
75 |
-
conda env create -f requirements.yaml # create an environment with the package requirements
|
76 |
-
```
|
77 |
-
|
78 |
-
**Then**
|
79 |
|
80 |
-
|
|
|
81 |
|
82 |
-
|
|
|
|
|
|
|
|
|
|
|
83 |
|
84 |
-
|
85 |
-
|
86 |
|
87 |
-
# Download the dataset
|
88 |
-
xami_dataset = XAMIDataset(
|
89 |
-
repo_id="iulia-elisa/XAMI-dataset",
|
90 |
-
dataset_name="xami_dataset",
|
91 |
-
data_path='./dest_dir')
|
92 |
-
```
|
93 |
###
|
94 |
Or you can simply download only the dataset zip file from HuggingFace using a CLI command:
|
95 |
|
|
|
67 |
|
68 |
# Downloading the dataset
|
69 |
|
70 |
+
Please check [load_and_visualise_dataset.pynb](https://github.com/ESA-Datalabs/XAMI-dataset/blob/main/load_and_visualise_dataset.ipynb)) formore visualization tools.
|
71 |
|
72 |
+
```python
|
73 |
+
from huggingface_hub import hf_hub_download
|
|
|
|
|
|
|
|
|
|
|
74 |
|
75 |
+
dataset_name = 'xami_dataset' # the dataset name of Huggingface
|
76 |
+
images_dir = '.' # the output directory of the dataset images
|
77 |
|
78 |
+
hf_hub_download(
|
79 |
+
repo_id="iulia-elisa/XAMI-dataset", # the Huggingface repo ID
|
80 |
+
repo_type='dataset',
|
81 |
+
filename=dataset_name+'.zip',
|
82 |
+
local_dir=images_dir
|
83 |
+
);
|
84 |
|
85 |
+
# Unzip file
|
86 |
+
!unzip -q "xami_dataset.zip" -d 'path/to/dest'
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
###
|
89 |
Or you can simply download only the dataset zip file from HuggingFace using a CLI command:
|
90 |
|