Insightface: converted RetinaFace mnet.25 caffemodel

Created on 24 May 2019  ·  16Comments  ·  Source: deepinsight/insightface

I convert the mnet.25 mxnet model (trained by yangfly ) to caffe model, and implement a simple c++ code
please check https://github.com/Charrin/RetinaFace-Cpp

All 16 comments

Did you compare the output for MxNet and Caffe models? Is it the same?

Did you compare the output for MxNet and Caffe models? Is it the same?

yes, the outputs are the same, and you can check it by yourself

Thanks for the answer, I'm a bit curious, because I have tried several MxNet to Caffe converters previously and did't see the same output. That's great, did you develop converter yourself or use something available?

Thanks for the answer, I'm a bit curious, because I have tried several MxNet to Caffe converters previously and did't see the same output. That's great, did you develop converter yourself or use something available?

I use MMDNN, but need add deconv/crop/reshape support by myself

Thanks for the answer, I'm a bit curious, because I have tried several MxNet to Caffe converters previously and did't see the same output. That's great, did you develop converter yourself or use something available?

If you have checked the output be the same, please reply to make the converted model more reliable, thank you :)

@Charrin ,Hi,Charrin:
can you make your convert code open source?The mmdnn does not support several operations,like upsampling,and crop.I could add operation upsampling,but failed to add crop.Thanks.

@Charrin ,Hi,Charrin:
can you make your convert code open source?The mmdnn does not support several operations,like upsampling,and crop.I could add operation upsampling,but failed to add crop.Thanks.

@zhly0
I add the upsampling/crop/reshape support, but they are temporary and not correct, it just makes MMDNN generating prototxt file without error, I must modity the prototxt after generated

@Charrin ,Hi,Charrin:
can you make your convert code open source?The mmdnn does not support several operations,like upsampling,and crop.I could add operation upsampling,but failed to add crop.Thanks.

@zhly0
you can modify "concat function" to "crop function", they are similarity, both need two bottom blobs and output one top blob.

@Charrin ,Thanks.

@Charrin can you share your MMDNN tools?

hello,can u share you convert script from mxnet to caffe?@Charrin thx very much

@Charrin It is awesome that you convert RetinaFace model via mmdnn tools.
Could you please share some docs of your reference about adding the upsampling/crop/reshape support and modify the prototxt?
I am trying to convert pretrained RetinaFace-R50 mxnet model to pb model.
The pretrained InsightFace model works, but RetinaFace not...

@ideaRunner Have you solve this problem?I tried convert RetinaFace-R50caffemodel->onnx->.pb, upsample and reshape op can be converted successfully, but crop op can't.

No, Still facing that problem, the mxnet op is so weird.

---Original---
From: "zt1112"<[email protected]>
Date: Wed, Aug 28, 2019 10:13 AM
To: "deepinsight/insightface"<[email protected]>;
Cc: "Mention"<[email protected]>;"Zhang Bin"<[email protected]>;
Subject: Re: [deepinsight/insightface] converted RetinaFace mnet.25 caffemodel (#700)

@ideaRunner Have you solve this problem?I tried convert RetinaFace-R50caffemodel->onnx->.pb, upsample and reshape op can be converted successfully, but crop op can't.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Interested in how to convert from mxnet to caffe...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lmmcc picture lmmcc  ·  4Comments

zys1994 picture zys1994  ·  3Comments

weihua04 picture weihua04  ·  5Comments

ahkarami picture ahkarami  ·  4Comments

Alloshee picture Alloshee  ·  3Comments