I can't believe it's been a whole year since we released the first GeoTessera library to make the TESSERA embeddings easier to get your mittens on. Quite a lot of adoption has happened since! I'm going to quickly review a year of embedding requests and the people who filed them, explain the move to the Source Cooperative for our hosting, what the Zarr upgrades with UTM routing and matryoshka entail, how the CLI works, and show you a guided tour that builds a land classifier and sonar panel detector.
Because we didn't have enough GPUs to pre-generate embeddings for everywhere in the world, we opened up our GitHub repo for people to request priority map areas they needed. This turned out to be a great way for us to meet our users and build community; there have been people from all over the globe getting in touch!
Geographically, most of the world is covered, and thematically the requests span agriculture, forests, land cover, water and urban mapping. From a machine learning perspective this involves downstream classification, segmentation and regression tasks from the same model embeddings. Here's a sample of what people are doing:
Klemmer et al did a great review of Earth embeddings as a category of their own for those who want to learn more about the field.
Thank you to everyone who took the trouble to file a request with us or write a paper about it, and please keep them coming as we roll out Tessera v2 as well this year!
I've also just released GeoTessera 0.10.0 with a quick 0.10.1 followup today after Aneesh Naik, Michael Dales and Sadiq Jaffer immediately found some rough edges as they ported their code.
The main feature is that all our hosting is no longer hammering Cambridge private servers, but now goes through the Source Cooperative and is fronted by CloudFlare edge caching. The source.coop/tessera/tessera remote replaces the AWS bucket we temporarily moved to earlier this year. We desperately need our Cambridge storage capacity back as we develop new models, so the older endpoints will be switched off shortly.
For our users, the primary benefit here is stability and lower latency access that's more 'cloud native'. If you've got a lot of resources and are running on AWS or Azure, you'll find you're closer to the Tessera data. On the other hand, when I was in India running the Tessera hackathon with IIT-Delhi at the AI Impact Summit, the performance was abysmal due to the India-Cambridge link being slow. That should now be much improved due to CloudFlare having plenty of edge caching all over the world. If not, let me know!
The Zarr Tessera wrapper has also had a big overhaul. The key benefit of Zarr is that
no downloads are needed as the client can stream data directly over HTTP. Since the
v3 layout work and the geo-embeddings convention proposal earlier this year, our Zarr store has been
UTM-native to minimise coordinate skew around the globe. This works via utmNN
Zarr sub-groups that contain the tiles for that particular slice of the world.
The GeoTesseraZarr
zarr wrapper now routes global lon/lats to the right UTM zone subgroup that actually contains the requested point. This is only necessary near the seams of UTM zones where a point might be on either side.
The other new preview feature (only for v2 embeddings) is support for the "Matryoshka embeddings" that we trained that new model with, following on from v1.1. The first 4 and the first 16 dimensions of a v2 embedding can be plucked out of the Zarr store independently of the full 128 dimensions, making it much easier to do a quick sample analysis.
The 0.10.1 follow-up release was to fix caching in the Zarr. GeoTesseraZarr
now accepts a cache_dir=
argument and calculates a cache key that disambiguates different model versions so they never clash. There are also minor fixes to make it easier to use local filesystems (Ceph in our case) which really don't like large directory reads.
The CLI is also quite handy to interactively do some tasks.
uvx geotessera info
will tell you which variants are published; and you can also poke at them interactively at tze.geotessera.org. Just click on the top right 'model version' button to switch to v2.
$ uvx geotessera info
โญโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโฎ
โ Version โ Variant โ Repository dir โ Status โ
โโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโค
โ 1.0 โ vultr (default) โ v1 โ available โ
โ 1.1 โ cambridge (default) โ v1.1-cam โ available โ
โ 1.1 โ dclimate โ - โ coming soon โ
โ 2.0 โ 2B-L~beta1 (default) โ v2-2B-L~beta1 โ available โ
โ 2.0 โ 2B-L~beta2 โ v2-2B-L~beta2 โ available โ
โฐโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโฏ
Note that the v2 ones will have very little coverage as we're still exploring different inference strategies. V1.1 is going through a complete global run at the moment by dClimate, so those should be available en mass in September sometime.
I've put together a ucam-eo/geotessera-examples repository to provide a little teaching tour, after Michael Dales asked for one a while back. The first of these is a land-cover classifier for any point on Earth:
uv run 01_classify.py --lon 0.12 --lat 52.20 # Cambridge, obviously
This shows how to load a few embeddings from the store:
gt = GeoTesseraZarr(zarr_store_url("v2"), cache_dir="tessera-cache")
mosaic, transform, crs = gt.read_region((west, south, east, north), year)
After that we use OpenStreetMap libraries to issue an Overpass query and pull some labels for water, woodland, farmland, buildings and roads for that bounding box.
After that, rasterio
paints these onto an image using the same coordinate
transform that the read_region
call calculates.
features = ox.features.features_from_bbox(bbox=bbox, tags=OSM_TAGS).to_crs(crs)
rasterize([(g, class_id) for g in shapes], out=labels, transform=transform)
Once the labels and embeddings are aligned, we train a k-nearest-neighbours classifier and a logistic regression to assign a label to each pixel in the bounding box:
knn = KNeighborsClassifier(n_neighbors=5).fit(x_fit, y_fit)
logreg = LogisticRegression(max_iter=2000).fit(scaler.transform(x_fit), y_fit)
The remainder of the guided tour runs the same classifier using the v2 beta model at a depth of 16, as well as the full 128 dimensions, and compares the accuracy for you.
For regions too big to hold in memory there is also an iter_region
function now, which splits the mosaic into row strips while prefetching the next one. There's a solar panel detection example that pushes that to lots of pixels without materialising all of them at once; Sadiq Jaffer first demoed this in his PROPL talk last year.
Once you get into segmentation, check out Sadiq Jaffer writing about the innards of tiny CNNs over Tessera to brew your own variations.
All you need is pip install geotessera
or uvx geotessera
to invoke the CLI.
The examples repository is a good place to start. The GeoTessera documentation covers the full API. Our EEG Zulip has several public channels to reach out to for more interactive help.
For the agentic hackers among you, there's also a Claude Code plugin in the
repository now. Just type /plugin
in Claude Code and add ucam-eo/geotessera
and activate the resulting geotessera
plugin to get you going.
Here's to another year of geospatial fun! Happy birthday Tessera!