Skip to content

feat: use TorchGeo tessera and presto#29

Open
isaaccorley wants to merge 2 commits intomainfrom
codex/torchgeo-models-presto
Open

feat: use TorchGeo tessera and presto#29
isaaccorley wants to merge 2 commits intomainfrom
codex/torchgeo-models-presto

Conversation

@isaaccorley
Copy link
Collaborator

Refactored Pixelverse to use TorchGeo for Tessera instead of local copied Tessera code, and added the Presto model (from the latest TorchGeo) to the model registry.

Also fixed a couple notebook issues and re-ran the sample notebook to make sure it executes with the updated model API.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request refactors Pixelverse to use TorchGeo's native implementations of the Tessera model and adds support for the Presto model encoder. The refactoring eliminates approximately 300 lines of duplicated Tessera code and modernizes the model registry to leverage TorchGeo's standardized weights and transforms system.

Changes:

  • Replaced local Tessera implementation with TorchGeo's tessera and presto models
  • Simplified model registry by removing the pretrained parameter and always loading pretrained weights
  • Updated tests, notebooks, and documentation to reflect the new API

Reviewed changes

Copilot reviewed 11 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/pixelverse/models/registry.py Updated to import models from TorchGeo, added Presto support, removed pretrained parameter, added encoder extraction for Presto
src/pixelverse/models/tessera.py Deleted entire file (~300 lines) - now uses TorchGeo implementation
src/pixelverse/models/init.py Removed exports of Tessera and PixelTimeSeriesNormalize classes
src/pixelverse/generate_embeddings.py Removed pretrained parameter from create_model call
tests/test_models.py Added Presto test case with proper input/output validation, updated to use hardcoded input shapes
tests/test_generate_embeddings.py Updated spies to reference TorchGeo's internal classes
tests/test_download.py Removed malformed type ignore comments
scripts/export_tessera.py Deleted export script no longer needed with TorchGeo integration
pyproject.toml Added torchgeo>=0.9 dependency
notebooks/sample_embeddings_generation.ipynb Added rioxarray import, removed pretrained parameter, added .float() conversions
README.md Added documentation for Presto model
.gitignore Added *.zarr to ignore data files

@isaaccorley isaaccorley changed the title [codex] use TorchGeo tessera and add presto feat: use TorchGeo tessera and add presto Feb 24, 2026
@isaaccorley isaaccorley changed the title feat: use TorchGeo tessera and add presto feat: use TorchGeo tessera and presto Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants