File size: 565 Bytes
8beb82f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
license: cc-by-nc-nd-4.0
---


# How to use it
Install Dataset4EO

```git clone --branch streaming https://github.com/EarthNets/Dataset4EO.git```

```pip install -e .```

Then download the dataset from this Huggingface repo.

```python
import dataset4eo as eodata
import time

train_dataset = eodata.StreamingDataset(input_dir="EarthNets_GAMUS/EarthNets_GAMUS/optimized_gamus_train", num_channels=3, shuffle=True, drop_last=True)
sample = dataset[101]
print(sample.keys())
print(sample["image"])        
print(sample["simage"].shape)
print(sample["label"]) 
```