Converts Machine Learning models to ONNX for use in Windows ML
Project description
Introduction
WinMLTools enables you to convert models from different machine learning toolkits into ONNX for use with Windows ML. Currently the following toolkits are supported:
Apple Core ML
scikit-learn (subset of models convertible to ONNX)
xgboost
libSVM
Keras
Install
pip install winmltools
Dependencies
scikit-learn is needed to convert a scikit-learn model, coremltools for Apple Core ML.
Example
Here is a simple example to convert a Core ML model:
import winmltools
import coremltools
model_coreml = coremltools.utils.load_spec("image_recognition.mlmodel")
model_onnx = winmltools.convert.convert_coreml(model_coreml, "Image_Reco")
# Save as text
winmltools.utils.save_text(model_onnx, "image_recognition.json")
# Save as protobuf
winmltools.utils.save_model(model_onnx, "image_recognition.onnx")
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file winmltools-1.2.0.824-py2.py3-none-any.whl.
File metadata
- Download URL: winmltools-1.2.0.824-py2.py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adef19ce9cd7fe75c02b5104074b980617b2dfec3f022c3d1db013a563e6b17a
|
|
| MD5 |
8741b5564e280b061bc26b82cc6596ab
|
|
| BLAKE2b-256 |
f33e0f058e1c10fe37af52208641477d4f240edb4caa3a9c2f1fec09f889ca9c
|