开源软件名称:ysh329/deep-learning-model-convertor开源软件地址:https://github.com/ysh329/deep-learning-model-convertor开源编程语言:开源软件介绍:The project will be updated continuously ...... Pull requests are welcome! Deep Learning Model ConvertorsNote: This is not one convertor for all frameworks, but a collection of different converters. Because github is an open source platform, I hope we can help each other here, gather everyone's strength. Because of these different frameworks, the awesome convertors of deep learning models for different frameworks occur. It should be noted that I did not test all the converters, so I could not guarantee that each was available. But I also hope this convertor collection may help you! The sheet below is a overview of all convertors in github (not only contain official provided and more are user-self implementations). I just make a little work to collect these convertors. Also, hope everyone can support this project to help more people who're also crazy because of various frameworks. Brief Intro of ConvertorsOpen Neural Network ExchangeGeneral framework for converting between all kinds of neural networks ONNX is an effort to unify converters for neural networks in order to bring some sanity to the NN world. Released by Facebook and Microsoft. More info here. MMdnnMMdnn is a set of tools to help users inter-operate among different deep learning frameworks. E.g. model conversion and visualization. Convert models between CaffeEmit, CNTK, CoreML, Keras, MXNet, ONNX, PyTorch and TensorFlow. MXNet convertorConvert to MXNet model. mdering/CoreMLZoo: A few models converted from caffe to CoreMLs formatA few deep learning models converted from various formats to CoreMLs format. Models currently available:
mxnet/tools/caffe_converterKey topics covered include the following:
nicklhy/ResNet_caffe2mxnetThis is a tool to convert the deep-residual-networks from caffe model to mxnet model. The weights are directly copied from caffe network blobs. Caffe convertorConvert to Caffe model. keras-caffe-converterIt is a converter between Keras and Caffe in both ways. It works using only the Keras model to generate both the caffemodel and prototxt files, but it is also possible to pass it the prototxt file with the description of the model if you have it. brocolliSupport 1.9.0 or higher Pytorch pytorch2caffeConvert PyTorch model to Caffemodel. cypw/MXNet2CaffeConvert MXNet model to Caffe model. wranglerwong/Mxnet2Caffe: Convert MXNet model to Caffe modelConvert MXNet model to Caffe model. kuangliu/mochaConvert torch model to/from caffe model easily. uhfband/keras2caffe: Keras to Caffe model converter toolThis tool tested with Caffe 1.0, Keras 2.1.2 and TensorFlow 1.4.0 Working conversion examples:
Problem layers:
facebook/fb-caffe-exts/torch2caffeSome handy utility libraries and tools for the Caffe deep learning framework, which has ** A library for converting pre-trained Torch models to the equivalent Caffe models.** pytorch-caffe-darknet-convertConvert between pytorch, caffe and darknet models. Caffe darknet models can be load directly by pytorch. Teaonly/trans-torchTranslating Torch model to other framework such as Caffe, MxNet ... e-lab/th2caffeA torch-nn to caffe converter for specific layers. hahnyuan/nn_toolsa neural network convertor for models among caffe tensorflow keras xxradon/PytorchToCaffe: Pytorch model to caffe model, supported pytorch 0.3, 0.3.1, 0.4, 0.4.1 ,1.0 , 1.0.1 , 1.2 ,1.3 .notice that only pytorch 1.1 have some bugsProviding a tool for neural network frameworks for pytorch and caffe. The nn_tools is released under the MIT License (refer to the LICENSE file for details). features:
requirements
Caffe2 convertorConvert to Caffe2 model. CaffeToCaffe2This is an official convertor, which not only provoide a script also an ipython notebook as below:
onnx-caffe2Convert PyTorch to Caffe2 (making it especially easy to deploy on mobile devices) CNTK convertorConvert to CNTK model. crosstalkcaffe/CaffeConverterThe tool will help you convert trained models from Caffe to CNTK. Convert trained models: giving a model script and its weights file, export to CNTK model. crosstalkcrosstalk is from CNTK contrib. Theano/Lasagne convertorConvert to Theano/Lasagne model. an-kumar/caffe-theano-conversionThis is part of a project for CS231N at Stanford University, written by Ankit Kumar, Mathematics major, Class of 2015 This is a repository that allows you to convert pretrained caffe models into models in Lasagne, a thin wrapper around Theano. You can also convert a caffe model's architecture to an equivalent one in Lasagne. You do not need caffe installed to use this module. Currently, the following caffe layers are supported:
kencoken/caffe-model-convertConvert models from Caffe to Theano format. piergiaj/caffe-to-theanoConvert a Caffe Model to a Theano Model. This currently works on AlexNet, but should work for any Caffe model that only includes layers that have been impemented. Neon convertorConvert to Neon model. NervanaSystems/caffe2neonTools to convert Caffe models to neon's serialization format. This repo contains tools to convert Caffe models into a format compatible with the neon deep learning library. The main script, "decaffeinate.py", takes as input a caffe model definition file and the corresponding model weights file and returns a neon serialized model file. This output file can be used to instantiate the neon Model object, which will generate a model in neon that should replicate the behavior of the Caffe model. PyTorch convertorConvert to PyTorch model. nerox8664/gluon2pytorchConvert mxnet / gluon graph to PyTorch source + weights. ruotianluo/pytorch-resnetConvert resnet trained in caffe to pytorch model. clcarwin/convert_torch_to_pytorchConvert torch t7 model to pytorch model and source. vzhong/chainer2pytorch
pytorch-caffeLoad caffe prototxt and weights directly in pytorch without explicitly converting model from caffe to pytorch. nn-transferConvert between Keras and PyTorch models. Torch convertorConvert to Torch model. kmatzen/googlenet-caffe2torchConverts bvlc_googlenet.caffemodel to a Torch nn model. Want to use the pre-trained GoogLeNet from the BVLC Model Zoo in Torch? Do you not want to use Caffe as an additional dependency inside Torch? Use these two scripts to build the network definition in Torch and copy the learned weights from the Caffe model. kuangliu/mochaConvert torch model to/from caffe model easily. szagoruyko/loadcaffeConvert caffe model to a Torch nn.Sequential model. Keras convertorConvert to Keras model. AlexPasqua/keras-caffe-converterIt is a both-ways converter between Keras and Caffe. It takes the weights from the AlexPasqua/caffe_weight_converterThis project is used as a part of the previous one on this list: AlexPasqua/keras-caffe-converter, which is more complete, documented and easy to use. I'd recommend using that one instead. This converter converts the weights of a model only (not the model definition), which has the great advantage that it doesn't break every time it encounters an unknown layer type like other converters to that try to translate the model definition as well. The downside, of course, is that you'll have to write the model definition yourself. The repository also provides converted weights for some popular models. qxcv/caffe2kerasNote: This converter has been adapted from code in |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论