Skip to main content

ModelEngine

The ModelEngine repo is used to integrate new Tensorflow models into the OsmosisAI platform, though it is not strictly related to that platform. The main feature of this codebase is its simplified API for training and inferencing with common models. Currently support is only available for YOLOv3 models, with support for more models being planned.

Installation

To use ModelEngine, install using pip:

pip install model-engine

Usage

from model_engine.models import get_model

yolo_model = get_model('yolov3:object_detection')

# Note that as of this version, utilities for creating records in the right format 
# are not ported to this project but are coming soon.
record_provider = yolo_model.Meta.record_provider('train.tfrecord', 'val.tfrecord', 'label_map.txt')

model_instance = yolo_model()  
model_instance.train(record_provider)

This API is in flux at the moment and derives some design principles from other projects such as Django. The current design is mainly influenced by decisions we've made in the past for our core OsmosisAI platform. Changing some things here requires making sure our platform is also ready for the change to be made, but we are open to making changes as necessary to support the wide usage of ModelEngine.

Models

Currently we support the following models:

  • YOLOv3

Support for more models is being planned and will be updated here later.

Goals

The API of this project is still in flux due to limited model availability, but we plan to try and keep it as simple and flexible as possible. One of our main goals is to reduce the amount of complexity around using model code inside other codebases. We will import other projects where possible to reduce the amount of code needing management, but many Tensorflow 2 codebases rely heavily on the usage of Abseil for configuration which does not play nicely when integrating with other code.

We also strive to keep outside dependencies to a minimum and currently aim to only require the necessary packages for Tensorflow 2.2.0.

Contributing

Contributions are welcome from anyone. Contributions here will also make the open-source OsmosisAI platform better by adding support for training and inferencing with new models.

If bugs or other issues are found please submit an issue using GitHub or if preferred our corporate email: contact@osmosisai.com.

To see a list of sources we've used take a look at the acknowledgements.

Metadata

Release files for model-engine 0.1.2

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

Built distribution (wheel)

Table of built distributions (wheels) for model-engine 0.1.2
File Interpreter ABI Platform
model_engine-0.1.2-py3-none-any.whl Python 3 none any Details

Release files / model_engine-0.1.2-py3-none-any.whl

Download URL model_engine-0.1.2-py3-none-any.whl
Size 20.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39b93485b6186f877d23fdf98bbb1468bbf2b53a88c55f96b750d0c0b6b41bda
BLAKE2b-256 checksum
How to use checksums
3a17a020fbbedad31d30451a1d889216d534e3f5c1543b73f3f116b8284f00ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6

Security for model-engine 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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