EarthEmbeddings#
- class torchgeo.datasets.EarthEmbeddings(root='data', transforms=None)[source]#
Bases:
NonGeoDatasetEarthEmbeddings dataset.
EarthEmbeddings are pre-computed embeddings of uniformly sampled MajorTOM-Core-S2L2A imagery using SatCLIP, FarSLIP, DINOv2, SigLIP models. These embeddings power the EarthEmbeddingExplorer application, which allows users to search for satellite images using text queries, image uploads, or geographic locations.
If you use this dataset in your research, please cite the following paper:
A tutorial paper to be uploaded to arXiv soon.
Added in version 0.9.
- __init__(root='data', transforms=None)[source]#
Initialize a new EarthEmbeddings 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: