xShadow commited on
Commit
8beb82f
·
verified ·
1 Parent(s): 1aed03e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -3
README.md CHANGED
@@ -1,3 +1,25 @@
1
- ---
2
- license: cc-by-nc-nd-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-nd-4.0
3
+ ---
4
+
5
+
6
+ # How to use it
7
+ Install Dataset4EO
8
+
9
+ ```git clone --branch streaming https://github.com/EarthNets/Dataset4EO.git```
10
+
11
+ ```pip install -e .```
12
+
13
+ Then download the dataset from this Huggingface repo.
14
+
15
+ ```python
16
+ import dataset4eo as eodata
17
+ import time
18
+
19
+ train_dataset = eodata.StreamingDataset(input_dir="EarthNets_GAMUS/EarthNets_GAMUS/optimized_gamus_train", num_channels=3, shuffle=True, drop_last=True)
20
+ sample = dataset[101]
21
+ print(sample.keys())
22
+ print(sample["image"])
23
+ print(sample["simage"].shape)
24
+ print(sample["label"])
25
+ ```