Skip to main content

A set of demonstration models to test OSML with.

Project description

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.

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

osml_models-1.3.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

osml_models-1.3.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file osml_models-1.3.0.tar.gz.

File metadata

  • Download URL: osml_models-1.3.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for osml_models-1.3.0.tar.gz
Algorithm Hash digest
SHA256 5b1722f0b9f0192371c245a2ae5c3adee784cc3a0de54eec2214428b36af899f
MD5 30b9e3304bb7706bdc5464a97be68006
BLAKE2b-256 14005ce972d3a6623732281e3db6f5fef3a69a25db2d2f7552ded66afe3a01dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for osml_models-1.3.0.tar.gz:

Publisher: pypi.yml on awslabs/osml-models

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

File details

Details for the file osml_models-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: osml_models-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for osml_models-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc9b447aafee0196b6db077c58b0e39deb2a7a3fd5c886c9d5e406574fe6a1e4
MD5 9a6c758cf65904a3edeb753b488ee44a
BLAKE2b-256 58c68e5e9be3e296ed4c2131571ed743b5e77c56aa0dea6ad8b5f61429f7105e

See more details on using hashes here.

Provenance

The following attestation bundles were made for osml_models-1.3.0-py3-none-any.whl:

Publisher: pypi.yml on awslabs/osml-models

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