Skip to main content

OmniCloudMask

image image image Conda Downloads image Documentation

State-of-the-art cloud and cloud shadow segmentation for high to moderate resolution satellite imagery.

Works with any imagery containing Red, Green, and NIR bands at 10-50 m resolution (and down to 5 m with recent model versions). Validated on Sentinel-2, Landsat 8, PlanetScope and Maxar imagery. See choosing a resolution for guidance on picking the right resolution for your data.

OmniCloudMask example

Documentation | Paper | Training Data Map | Podcast

Installation

pip install omnicloudmask

Or with uv, conda, or from source—see installation docs.

Quick Start

import numpy as np
from omnicloudmask import predict_from_array

# Input: (3, height, width) array with Red, Green, NIR bands
input_array = np.random.rand(3, 1024, 1024).astype(np.float32)

# Output: (1, height, width) mask
# Values: 0=Clear, 1=Thick Cloud, 2=Thin Cloud, 3=Cloud Shadow
mask = predict_from_array(input_array)

For a Sentinel-2 scene:

from pathlib import Path
from omnicloudmask import predict_from_load_func, load_s2

scene_paths = [Path("path/to/scene.SAFE")]
pred_paths = predict_from_load_func(scene_paths, load_s2)

For a dataset of same-sized image chips, run several chips per batch:

from omnicloudmask import predict_from_batch

# chips: (N, 3, 512, 512) array, output: (N, 1, 512, 512) masks
masks = predict_from_batch(chips, batch_size=16)

See the quickstart guide for more examples.

Example Notebooks

Try in Colab

Open In Colab

How it works

Sensor agnostic Deep Learning with OmniCloudMask

License

MIT License

Metadata

Release files for omnicloudmask 1.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for omnicloudmask 1.8.1
File Size Uploaded Provenance Actions
omnicloudmask-1.8.1.tar.gz 71.5 kB With provenance Details for omnicloudmask-1.8.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for omnicloudmask 1.8.1
File Interpreter ABI Platform Actions
omnicloudmask-1.8.1-py3-none-any.whl Python 3 none any Details for omnicloudmask-1.8.1-py3-none-any.whl

Total release size: 107.0 kB

Release files / omnicloudmask-1.8.1.tar.gz

Download URL omnicloudmask-1.8.1.tar.gz
Size 71.5 kB
Tags Source
SHA-256 checksum
How to use checksums
691cab8d842ad8de08183c6f0c6f1f1720a43c27803b4d689480281b5fbe018a
BLAKE2b-256 checksum
How to use checksums
fbfce9e95b4d74da3ed57667bb1f578e05fc23d2e399b5bc2894e47dba5d8d92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / omnicloudmask-1.8.1-py3-none-any.whl

Download URL omnicloudmask-1.8.1-py3-none-any.whl
Size 35.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
995b8c2f574a11d1579c36e8da66c42d81e63e4f907a7efa1bb4957a29646a0d
BLAKE2b-256 checksum
How to use checksums
0367a83b636e7a54b897e8ebafec7a4e0fc9fba7eb9fce78e3ffd2052bcebd35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Security for omnicloudmask 1.8.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for omnicloudmask-1.8.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page