Skip to main content

A library for developing remote sensing datasets and models

Project description

rslearn is a tool for developing remote sensing datasets and models.

rslearn helps with:

  1. Developing remote sensing datasets, starting with defining spatiotemporal windows (3D boxes in height/width/time) that are roughly equivalent to training examples.
  2. Importing raster and vector data from various online or local data sources into the dataset.
  3. Fine-tuning remote sensing foundation models on these datasets.
  4. Applying models on new locations and times.

Quickstart

If you are new to rslearn, we suggest starting here:

  1. First, read CoreConcepts, which summarizes key concepts in rslearn, including datasets, windows, layers, and data sources.
  2. Second, read WorkflowOverview, which provides an overview of the typical workflow in rslearn, from defining windows to training models.
  3. Finally, walk through the IntroExample, or find another example in Examples.md that can most readily be adapted for your project.

Other links:

  • DatasetConfig documents the dataset configuration file.
  • DataSources details the built-in data sources in rslearn, from which raster and vector data can be imported into rslearn dataset layers.
  • Compositors documents built-in and custom raster compositing methods, including cloud-aware ranking compositors.
  • ModelConfig documents the model configuration file.
  • TasksAndModels details the training tasks and model components available in rslearn.

Setup

rslearn requires Python 3.11+ (Python 3.12 is recommended).

git clone https://github.com/allenai/rslearn.git
cd rslearn
pip install .[extra]

For linting and tests:

pip install .[dev]
pre-commit install
pre-commit run --all-files
pytest tests/unit tests/integration
# For online data source tests, you can store credentials in .env and they will be
# loaded by pytest-dotenv.
pytest tests/online

Contact

For questions and suggestions, please open an issue on GitHub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rslearn-0.1.12.tar.gz (465.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rslearn-0.1.12-py3-none-any.whl (582.4 kB view details)

Uploaded Python 3

File details

Details for the file rslearn-0.1.12.tar.gz.

File metadata

  • Download URL: rslearn-0.1.12.tar.gz
  • Upload date:
  • Size: 465.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rslearn-0.1.12.tar.gz
Algorithm Hash digest
SHA256 ab45e8978f8c7916bb05f30ce23d0a3a3c1b6b49f2932779c53e1701a4c32349
MD5 1266885c5652f873d97587b5d21e36c4
BLAKE2b-256 89499e1850672d2e63062f0a88d04781f82e974cee74c127361f1e97de044e6b

See more details on using hashes here.

Provenance

The following attestation bundles were made for rslearn-0.1.12.tar.gz:

Publisher: publish.yml on allenai/rslearn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rslearn-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: rslearn-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 582.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rslearn-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 015c9fcbe914da704b9cbcbb866a2584faa1e6f67f837eb32f0bf8f45c16115e
MD5 b0b9a23b5ddc181504ad5f693f022327
BLAKE2b-256 7c73f82699de79566acf9916672da2cd664d2e8d368025134bfe2d2a063c414f

See more details on using hashes here.

Provenance

The following attestation bundles were made for rslearn-0.1.12-py3-none-any.whl:

Publisher: publish.yml on allenai/rslearn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page