EarthNets_GAMUS / README.md
xShadow's picture
Update README.md
8beb82f verified
metadata
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.

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"])