How To Convert Models - ProGamerGov/pytorch-old-tensorflow-models GitHub Wiki


Using this guide but with the following Mmdnn commands:

mmtoir -f tensorflow -w tensorflow_inception_graph.pb --inNodeName input --inputShape 224,224,3 --dstNodeName output -o inception_v1

mmtocode -f pytorch -n inception_v1.pb --IRWeightPath inception_v1.npy --dstModelPath inception_v1.py -dw inception_v1.npy

mmtomodel -f pytorch -in inception_v1.py -iw inception_v1.npy -o inception_v1.pth

I then renamed the model to inception5h.pth.