Skip to main content

A Python package to simplify the deployment process of exported Teachable Machine models.

Project description

Teachable Machine

A Python package to simplify the deployment process of exported Teachable Machine models into different environments like Windows, Linux and MAC.

Links:

PyPI

Source Code

Supported Tools in Teachable Machine

Image Classification using exported keras model from Teachable Machine platfrom.

Next tool in the package: Pose Classification

Requirements

Python >= 3.8

How to install package

pip install teachable-machine

Dependencies

numpy, Pillow, tensorflow

How to use teachable machine package

from teachable_machine import TeachableMachine

my_model = TeachableMachine(model_path='keras_model.h5', model_type='h5')

img_path = 'images/my_image.jpg'

result = my_model.classify_image(img_path)

print('highest_class_id:', result['highest_class_id'])
print('all_predictions:', result['all_predictions'])

highest_class_id is selected based on labels.txt file.

More features are coming soon...

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

teachable-machine-0.1.2.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

teachable_machine-0.1.2-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page