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:
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
Built Distribution
Close
Hashes for teachable_machine-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d90c3307c52f8e55b2765ee2e02f8e2765ba7d06daf118bf7e9758d7ec3c2253 |
|
MD5 | c1571b43e5f1e8b5981bb7f1c3fc1763 |
|
BLAKE2b-256 | e8ea22afa5a9ad50f415871ffe0d4174ed9591fc9ebfdfc34c4581a5762f36de |