RepositoryPython
Clay-foundation

Clay-foundation/model

The Clay Foundation Model - An open source AI model and interface for Earth

638stars
107forks
25issues
6views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: sentinel-2

#1 Repository of the week

1
TINIX TRENDING·Topic: digital-elevation-model

#1 Repository of the week

1
TINIX TRENDING·Topic: sentinel-1

#1 Repository of the week

Clay Foundation Model

Jupyter Book Badge Deploy Book Status

An open source AI model and interface for Earth.

License

Clay Model is licensed under the Apache. This applies to the source code as well as the trained model weights.

The Documentation is licensed under the CC-BY-4.0 license.

Quickstart

Launch into a JupyterLab environment on

BinderSageMaker Studio Lab
BinderOpen in SageMaker Studio Lab

Installation

The easiest way to install Clay Foundation Model is via pip:

pip install git+https://github.com/Clay-foundation/model.git

This will install the claymodel package and all its dependencies. You can then import and use it in your Python code:

from claymodel.datamodule import ClayDataModule
from claymodel.module import ClayMAEModule

Development Installation

For development or advanced usage, you can set up the full development environment:

To help out with development, start by cloning this repo-url

git clone <repo-url>
cd model

Then we recommend using mamba to install the dependencies. A virtual environment will also be created with Python and JupyterLab installed.

mamba env create --file environment.yml

[!NOTE] The command above has been tested on Linux devices with CUDA GPUs.

Activate the virtual environment first.

mamba activate claymodel

Finally, double-check that the libraries have been installed.

mamba list

Usage

Running jupyter lab

mamba activate claymodel
python -m ipykernel install --user --name claymodel  # to install virtual env properly
jupyter kernelspec list --json                       # see if kernel is installed
jupyter lab &

Running the model

The neural network model can be run via LightningCLI v2.

[!NOTE] If you installed via pip, you'll need to clone the repository to access the trainer script and config files.

To check out the different options available, and look at the hyperparameter configurations, run:

python trainer.py --help

To quickly test the model on one batch in the validation set:

python trainer.py fit --model ClayMAEModule --data ClayDataModule --config configs/config.yaml --trainer.fast_dev_run=True

To train the model:

python trainer.py fit --model ClayMAEModule --data ClayDataModule --config configs/config.yaml

More options can be found using python trainer.py fit --help, or at the LightningCLI docs.

Contributing

Writing documentation

Our Documentation uses Jupyter Book.

Install it with:

pip install -U jupyter-book

Then build it with:

jupyter-book build docs/

You can preview the site locally with:

python -m http.server --directory _build/html

There is a GitHub Action on .github/workflows/deploy-docs.yml that builds the site and pushes it to GitHub Pages.

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
sertit/eoreader

Remote-sensing opensource python library reading optical and SAR sensors, loading and stacking bands, clouds, DEM and spectral indices in a sensor-agnostic way.

357
Nov 26, 2026
RepositoryPython
bopen/elevation

Download, cache and clip global terrain digital elevation models: Mapzen terrain tiles, Copernicus DEM, ALOS World 3D, GEDTM30 and SRTM 30m and 90m DEMs.

356
Nov 15, 2026
RepositoryPython
ameraner/dsen2-cr

DSen2-CR: A network for removing clouds from Sentinel-2 images. This repo contains the model code, written in Python/Keras, as well as links to pre-trained checkpoints and the SEN12MS-CR dataset.

183
Jan 26, 2026
RepositoryPython
nmileva/starfm4py

The STARFM fusion model for Python

151
Feb 8, 2023
RepositoryPython
PatrickTUM/SEN12MS-CR-TS

No description provided.

111
Jan 23, 2024
RepositoryJupyter Notebook
bopen/sarsen

Algorithms and utilities for Synthetic Aperture Radar (SAR) sensors.

319
Nov 17, 2026
Dataset
BIFOLD-BigEarthNetv2-0/BigEarthNet.txt

BigEarthNet.txt: A Large-Scale Multi-Sensor Image-Text Dataset and Benchmark for Earth Observation BigEarthNet.txt is a large-scale multi-sensor image–text dataset for Earth observation, designed to advance vision–language learning on remote sensing data. It comprises 464,044 co-registered Sentinel-1 (SAR) and… See the full description on the dataset page: https://huggingface.co/datasets/BIFOLD-BigEarthNetv2-0/BigEarthNet.txt.

♥0
762
Oct 27, 2026
RepositoryJupyter Notebook
odhondt/eo_tools

A python toolbox for easily downloading and processing Sentinel-1 SLC, Sentinel-2 and DEM data.

73
Nov 19, 2026
RepositoryTypeScript
Esri/imagery-explorer-apps

A collection of Imagery Explorer web applications developed by Esri's ArcGIS Living Atlas team

61
Aug 15, 2026