Skip to content

Add inference quickstart guide#406

Merged
favyen2 merged 3 commits intomainfrom
favyen/20251023-inference-quickstart
Oct 23, 2025
Merged

Add inference quickstart guide#406
favyen2 merged 3 commits intomainfrom
favyen/20251023-inference-quickstart

Conversation

@favyen2
Copy link
Copy Markdown
Collaborator

@favyen2 favyen2 commented Oct 23, 2025

This covers how to initialize the model, get a satellite image, and compute embeddings on it.

This is intended to be lightweight but we can have a more detailed one in rslearn that uses rslearn to get an image time series to apply OlmoEarth on.


Note

Adds a concise quickstart guide showing how to initialize OlmoEarth, fetch a Sentinel-2 image, and compute embeddings with example code.

  • Docs:
    • Add docs/inference_quickstart.md quickstart guide for running inference with OlmoEarth.
      • Environment setup (Python 3.12 with uv) and model initialization via load_model(ModelID.OLMOEARTH_V1_BASE).
      • Sentinel-2 L2A data acquisition via Copernicus Browser or direct wget link; unzip instructions.
      • Preprocessing with rasterio/WarpedVRT to read bands at 10m, stack, and reshape; normalization with Normalizer(Strategy.COMPUTED).
      • Inference example creating MaskedOlmoEarthSample, running model.encoder(...), and pooling features to obtain embeddings.

Written by Cursor Bugbot for commit 237b8b5. This will update automatically on new commits. Configure here.

@favyen2 favyen2 force-pushed the favyen/20251023-inference-quickstart branch from 831cafd to f576734 Compare October 23, 2025 17:34
@allenai allenai deleted a comment from cursor Bot Oct 23, 2025
Comment thread docs/inference_quickstart.md
Copy link
Copy Markdown
Collaborator

@Hgherzog Hgherzog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for adding this

@favyen2 favyen2 merged commit 1b028de into main Oct 23, 2025
5 checks passed
@favyen2 favyen2 deleted the favyen/20251023-inference-quickstart branch October 23, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants