microsoft /MMdnn
MMdnn is a set of tools to help users inter-operate among different deep learning frameworks. E.g. model conversion and visualization. Convert models between Caffe, Keras, MXNet, Tensorflow, CNTK, PyTorch Onnx and CoreML.
★ 5,800⑂ 952👁 173⑃ 329● 617▤ 12
+0
日增长
5,800
stars
952
forks
173
watchers
329
prs
617
issues
12
releases
README
!MMdnn MMdnn
MMdnn is a comprehensive and cross-framework tool to convert, visualize and diagnose deep learning (DL) models.
The "MM" stands for model management, and "dnn" is the acronym of deep neural network.
Major features include:
- Model Conversion
- We implement a universal converter to convert DL models between frameworks, which means you can train a model with one framework and deploy it with another.
- Model Retraining
- During the model conversion, we generate some code snippets to simplify later retraining or inference.
- Model Search & Visualization
- We provide a model collection to help you find some popular models.
- We provide a model visualizer to display the network architecture more intuitively.
- Model Deployment
- We provide some guidelines to help you deploy DL models to another hardware platform.
- Android
- Serving
- We provide a guide to help you accelerate inference with TensorRT.
- TensorRT
Related Projects
Targeting at openness and advancing state-of-art technology, Microsoft Research (MSR) and Microsoft Software Technology Center (STC) had also released few other open source projects:
OpenPAI : an open source platform that provides complete AI model training and resource management capabilities, it is easy to extend and supports on-premise, cloud and hybrid environments in various scale.
FrameworkController : an open source general-purpose Kubernetes Pod Controller that orchestrate all kinds of applications on Kubernetes by a single controller.
NNI : a lightweight but powerful toolkit to help users automate Feature Engineering, Neural Architecture Search, Hyperparameter Tuning and Model Compression.
NeuronBlocks : an NLP deep learning modeling toolkit that helps engineers to build DNN models like playing Lego. The main goal of this toolkit is to minimize developing cost for NLP deep neural network model building, including both training and inference stages.
SPTAG : Space Partition Tree And Graph (SPTAG) is an open source library for large scale vector approximate nearest neighbor search scenario.
We encourage researchers, developers and students to leverage these projects to boost their AI / Deep Learning productivity.
Installation
Install manually
You can get a stable version of MMdnn by
bash
pip install mmdnn
And make sure to have Python installed
or you can try the newest version by
bash
pip install -U git+https://github.com/Microsoft/MMdnn.git@master
Install with docker image
MMdnn provides a docker image, which packages MMdnn and Deep Learning frameworks that we support as well as other dependencies.
You can easily try the image with the following steps:
1. Install Docker Community Edition(CE)
_Learn more about how to install docker_
1. Pull MMdnn docker image
bash
docker pull mmdnn/mmdnn:cpu.small
1. Run image in an interactive mode
bash
docker run -it mmdnn/mmdnn:cpu.small
Features
Model Conversion
AcroTop issues
#85MXNet convertorToIR don't parse 'attrs' layer parameters43 comments · 2018-02-27#324AssertionError22 comments · 2018-07-20#608pytorch to IR error??16 comments · 2019-03-07#671UnboundLocalError: local variable 'x' referenced before assignment15 comments · 2019-06-05#642mmconvert from pytorch to tensorflow: 'dict' object has no attribute 'state_dict'`11 comments · 2019-04-15#107IndexError: list index out of range when converting TF Inception3 to IR11 comments · 2018-03-14#862mxnet to pytorch9 comments · 2020-07-08#600[MXNet LResNet50E-IR] MXNet to PyTorch9 comments · 2019-03-04
Latest release
MMdnn 0.3.1 Release 0.3.1 2020-07-24Initial support for PyTorch1.5.1 .