Iulia Elisa commited on
Commit
0d654ec
1 Parent(s): 49715f1

update download options

Browse files
Files changed (1) hide show
  1. README.md +13 -18
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
- ### Clone the repository
71
 
72
- ```bash
73
- git clone https://github.com/ESA-Datalabs/XAMI-dataset.git
74
- cd XAMI-dataset
75
- conda env create -f requirements.yaml # create an environment with the package requirements
76
- ```
77
-
78
- **Then**
79
 
80
- ### Download the dataset archive from HuggingFace
 
81
 
82
- - using a python script (see [load_and_visualise_dataset.pynb](https://github.com/ESA-Datalabs/XAMI-dataset/blob/main/load_and_visualise_dataset.ipynb))
 
 
 
 
 
83
 
84
- ```python
85
- from xami_dataset import XAMIDataset
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