Earth Index Embeddings#
- class torchgeo.datasets.EarthIndexEmbeddings(root='data', transforms=None)[source]#
Bases:
NonGeoDatasetEarth Index Embeddings dataset.
Earth Index Embeddings are a global embedding product generated from Earth Index v2 Sentinel-2 mosaics. The embeddings are generated using the SoftCon model from Zhu XLabs and result in an embedding of length 384. Each embedding captures a 320 square meter patch of the Earth, gridded using a MajorTom-based grid. These embeddings, their IDs and centroids are encoded in geoparquet. The GeoParquet is named similarly to the imagery and references the original MGRS/UTM tile which the imagery covered.
Added in version 0.9.
- __init__(root='data', transforms=None)[source]#
Initialize a new EarthIndexEmbeddings instance.
- Parameters:
- Raises:
DatasetNotFoundError – If dataset is not found.
- __len__()[source]#
Return the number of data points in the dataset.
- Returns:
Length of the dataset.
- Return type: