因為最近的項目需求,需要我將Tensorflow模型、caffe模型和Mxnet模型轉換成darknet模型,因此做個記錄。
一些github上面的模型轉換匯總:https://github.com/ysh329/deep-learning-model-convertor
從網上現有的一些模型轉換方法可以看出,能轉成darknet的模型里面目前僅有caffe,
因此對於Tensorflow的轉換我們可以使用
Tensorflow---->caffe MMdnn nn_tools caffe---->darknet pytorch-caffe-darknet-convert
對於Mxnet,我們可以使用
mxnet---->caffe MMdnn Mxnet2Caffe caffe---->darknet pytorch-caffe-darknet-convert
對於caffe2,我們可以使用
caffe2---->pytorch ONNX pytorch--->caffe pytorch-caffe-darknet-convert caffe---->darknet pytorch-caffe-darknet-convert