Skip to main content

OSML Models

This package contains sample models that can be used to test OversightML installations without incurring high compute costs typically associated with complex Computer Vision models. These models implement an interface compatible with SageMaker and are suitable for deployment as endpoints with CPU instances.

Table of Contents

Getting Started

Prerequisites:

First, ensure you have installed the following tools locally

Installation Guide

Clone osml-models package into your desktop

git clone https://github.com/awslabs/osml-models.git

Documentation

You can find documentation for this library in the ./doc directory. Sphinx is used to construct a searchable HTML version of the API documents.

tox -e docs

Once the documentation website is generated, it can be accessed in your browser at the following URL: file://[full path to osml-models repository root]/.tox/docs/tmp/html/index.html

Build and Local Testing

To build the container, it uses the default docker/Dockerfile. If you want to change to another Dockerfile, replace the docker/Dockerfile with the new Dockerfile path.

docker build . -t osml-models:latest -f docker/Dockerfile

Note: The MODEL_SELECTION environment variable can be used to pick the model to run. Currently, we support 3 different types of a model and below are the appropriate naming convention:

  • centerpoint
  • flood
  • aircraft

In one terminal, run the following command to start the server:

docker run -p 8080:8080 -e MODEL_SELECTION=${MODEL_SELECTION} osml-models:latest

In another terminal to invoke the rest server and return the inference on a single tile, run the following command from the root of this repository:

curl -I localhost:8080/ping
curl --request POST --data-binary "@<imagery file>" localhost:8080/invocations
  • Example: curl --request POST --data-binary "@assets/images/2_planes.tiff" localhost:8080/invocations

Executing above should return:

{"type": "FeatureCollection", "features": [{"geometry": {"coordinates": [0.0, 0.0], "type": "Point"}, "id": "7683a11e4c93f0332be9a4a53e0c6762", "properties": {"bounds_imcoords": [204.8, 204.8, 307.2, 307.2], "detection_score": 1.0, "feature_types": {"sample_object": 1.0}, "image_id": "8cdac8849cae2b4a8885c0dd0d34f722"}, "type": "Feature"}]}

Support & Feedback

OversightML Models are maintained by AWS Solution Architects. It is not part of an AWS service and support is provided best-effort by the OversightML community.

To post feedback, submit feature ideas, or report bugs, please use the Issues section of this GitHub repo.

If you are interested in contributing to OversightML Models, see the CONTRIBUTING guide.

Resources

Security

See CONTRIBUTING for more information.

License

MIT No Attribution Licensed. See LICENSE.

Metadata

Release files for osml-models 1.3.0

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

Source distribution (sdist)

Source distribution for osml-models 1.3.0
File Size Uploaded Provenance
osml_models-1.3.0.tar.gz 13.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for osml-models 1.3.0
File Interpreter ABI Platform
osml_models-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.8 kB

Release files / osml_models-1.3.0.tar.gz

Download URL osml_models-1.3.0.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5b1722f0b9f0192371c245a2ae5c3adee784cc3a0de54eec2214428b36af899f
BLAKE2b-256 checksum
How to use checksums
14005ce972d3a6623732281e3db6f5fef3a69a25db2d2f7552ded66afe3a01dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Aug 25, 2025.

Transparency log

Release files / osml_models-1.3.0-py3-none-any.whl

Download URL osml_models-1.3.0-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc9b447aafee0196b6db077c58b0e39deb2a7a3fd5c886c9d5e406574fe6a1e4
BLAKE2b-256 checksum
How to use checksums
58c68e5e9be3e296ed4c2131571ed743b5e77c56aa0dea6ad8b5f61429f7105e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Aug 25, 2025.

Transparency log

Security for osml-models 1.3.0

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 osml_models-1.3.0.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 Aug 25, 2025.

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