Skip to main content

A PyTorch implementation of MAE (Masked Autoencoder) for satellite imagery

Project description

Clay Foundation Model

Jupyter Book Badge Deploy Book Status

An open source AI model and interface for Earth.

Quickstart

Launch into a JupyterLab environment on

Binder SageMaker Studio Lab
Binder Open in SageMaker Studio Lab

Installation

Basic

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 ran via LightningCLI v2. 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.

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

clay_foundation_model-0.1.0.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

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

clay_foundation_model-0.1.0-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file clay_foundation_model-0.1.0.tar.gz.

File metadata

  • Download URL: clay_foundation_model-0.1.0.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.10.9 Windows/10

File hashes

Hashes for clay_foundation_model-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ad309a06b1830355f8aad818d8668d9e0a00ae7cef556b652315b1037e7f44dc
MD5 8f0c533bcdd89673a63caf516acb0599
BLAKE2b-256 9a1925e97309956d5e314c65890c9e0600b807cd0c9191b25a94e4eedeb47ea2

See more details on using hashes here.

File details

Details for the file clay_foundation_model-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for clay_foundation_model-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd60be5d0e4944d99db64d8d01d7ac8ed7d2912bbe1399553536c7a6bd239115
MD5 e34f27dc3102021c8fb018e1343df73a
BLAKE2b-256 127b702f110c95528c48ca362ef487968605f65cfa162aa317db71c6973a63ab

See more details on using hashes here.

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