TopGit tracks microsoft/MMdnn on GitHub as part of the AI Tools family. The project has 5.8k stars. 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.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
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
pip install mmdnn
And make sure to have Python installed
or you can try the newest version by
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:
Install Docker Community Edition(CE)
Learn more about how to install docker
Pull MMdnn docker image
docker pull mmdnn/mmdnn:cpu.small
Run image in an interactive mode
docker run -it mmdnn/mmdnn:cpu.small
Features
Model Conversion
Across the industry and academia, there are a number of existing frameworks available for developers and researchers to design a model, where each framework has its own network structure definition and saving model format. The gaps between frameworks impede the inter-operation of the models.
We provide a model converter to help developers convert models between frameworks through an intermediate representation format.
Support frameworks
[Note] You can click the links to get detailed README of each framework.
Caffe
Microsoft Cognitive Toolkit (CNTK)
CoreML
Keras
MXNet
ONNX (Destination only)
PyTorch
TensorFlow (Experimental) (We highly recommend you read the README of TensorFlow first)
DarkNet (Source only, Experiment)
Tested models
The model conversion between currently supported frameworks is tested on some ImageNet models.
Models
Caffe
Keras
TensorFlow
CNTK
MXNet
PyTorch
CoreML
ONNX
VGG 19
√
√
√
√
√
√
√
√
Inception V1
√
√
√
√
√
√
√
√
Inception V3
√
√
√
√
√
√
√
√
Inception V4
√
√
√
o
√
√
√
√
ResNet V1
×
√
√
o
√
√
√
√
ResNet V2
√
√
√
√
√
√
√
√
MobileNet V1
×
√
√
o
√
√
√
√
MobileNet V2
×
√
√
o
√
√
√
√
Xception
√
√
√
o
×
√
√
√
SqueezeNet
√
√
√
√
√
√
√
√
DenseNet
√
√
√
√
√
√
√
√
NASNet
x
√
√
o
√
√
√
x
ResNext
√
√
√
√
√
√
√
√
voc FCN
√
√
Yolo3
√
√
Usage
One command to achieve the conversion. Using TensorFlow ResNet V2 152 to PyTorch as our example.
We provide a local visualizer to display the network architecture of a deep learning model.
Please refer to the instruction.
Examples
Official Tutorial
Keras "inception V3" to CNTK and related issue
TensorFlow slim model "ResNet V2 152" to PyTorch
Mxnet model "LResNet50E-IR" to TensorFlow and related issue
Users' Examples
MXNet "ResNet-152-11k" to PyTorch
Another Example of MXNet "ResNet-152-11k" to PyTorch
MXNet "ResNeXt" to Keras
TensorFlow "ResNet-101" to PyTorch
TensorFlow "mnist mlp model" to CNTK
TensorFlow "Inception_v3" to MXNet
Caffe "voc-fcn" to TensorFlow
Caffe "AlexNet" to TensorFlow
Caffe "inception_v4" to TensorFlow
Caffe "VGG16_SOD" to TensorFlow
Caffe "SqueezeNet v1.1" to CNTK
Contributing
Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to and actually do, grant us
the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct.
For more information see the Code of Conduct FAQ or
contact [email protected] with any additional questions or comments.
Intermediate Representation
The intermediate representation stores the network architecture in protobuf binary and pre-trained weights in NumPy native format.
[Note!] Currently the IR weights data is in NHWC (channel last) format.
Details are in ops.txt and graph.proto. New operators and any comments are welcome.
Frameworks
We are working on other frameworks conversion and visualization, such as PyTorch, CoreML and so on. We're investigating more RNN related operators. Any contributions and suggestions are welcome! Details in Contribution Guideline.
Authors
Yu Liu (Peking University): Project Developer & Maintainer
The most recent commit recorded on microsoft/MMdnn was 1.3 years ago, based on the GitHub push timestamp. The repository has 952 forks — one of the better signals of community interest.
How many stars does microsoft/MMdnn have?
microsoft/MMdnn has 5.8k GitHub stars — refresh the page for the live number, or check github.com/microsoft/MMdnn. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is microsoft/MMdnn open source?
Yes — microsoft/MMdnn ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/microsoft/MMdnn.
What else is in the AI Tools space?
microsoft/MMdnn is tracked by TopGit under the AI Tools category, alongside 11 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What is microsoft/MMdnn?
microsoft/MMdnn (microsoft/MMdnn) is a Python project on GitHub. From the project's own README: 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.
What language is microsoft/MMdnn written in?
microsoft/MMdnn is written primarily in Python. GitHub's language field is based on the largest share of bytes in the default branch.
What license does microsoft/MMdnn use?
microsoft/MMdnn is released under the MIT license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about microsoft/MMdnn?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/microsoft/MMdnn is the definitive source.
Read full README in the tab above.
Still deciding about MMdnn?
One click hands the question to an AI along with this page — see what it says about MMdnn.