facenet icon indicating copy to clipboard operation
facenet copied to clipboard

Format of saving model

Open eravallirao opened this issue 5 years ago • 7 comments

How can I get a model saved as .dat format? Presently I am able to train and get a .pb model.

eravallirao avatar Mar 28 '19 17:03 eravallirao

were you able to get a single .pb file for MTCNN? Or three separate .pb files for P-Net, R-Net and O-Net respectively? Thanks a lot.

bansalshubh91 avatar Apr 05 '19 16:04 bansalshubh91

I got .meta and checkpoints as output from that I was able to extract .pb model

On Fri, Apr 5, 2019, 9:57 PM shubham bansal [email protected] wrote:

are you able to get a single .pb file for MTCNN? Or three separate .pb files for P-Net, R-Net and O-Net respectively? Thanks a lot.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/davidsandberg/facenet/issues/999#issuecomment-480338725, or mute the thread https://github.com/notifications/unsubscribe-auth/AuwrDEB1ZhObV-U9SaqH6cQ75XpkbtG6ks5vd3lhgaJpZM4cQwDO .

eravallirao avatar Apr 05 '19 16:04 eravallirao

If you don't mind, I would like to sincerely request you to kindly share the .pb file. I'll be immensely grateful and appreciative for the same. Thank you very much.

bansalshubh91 avatar Apr 05 '19 16:04 bansalshubh91

Sorry as it is team's work and they haven't accepted to that I am unable to do that, If you need any help regarding building I can help you.

Thanks

On Fri, Apr 5, 2019, 10:10 PM shubham bansal [email protected] wrote:

If you don't mind, I would like to sincerely request you to kindly share the .pb file. I'll be immensely grateful and appreciative for the same. Thank you very much.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/davidsandberg/facenet/issues/999#issuecomment-480342680, or mute the thread https://github.com/notifications/unsubscribe-auth/AuwrDIILhcAZMggcpse7VKtqqwDVWPSpks5vd3x5gaJpZM4cQwDO .

eravallirao avatar Apr 07 '19 15:04 eravallirao

You need to freeze the model after the training to generate your .pb file.

python src/freeze_graph.py .model_dir output_file.pb

wesleyfantinel avatar Apr 15 '19 17:04 wesleyfantinel

hello, have u known how to saved as a .dat file?

StonePanda avatar Mar 29 '20 04:03 StonePanda

were you able to get a single .pb file for MTCNN? Or three separate .pb files for P-Net, R-Net and O-Net respectively? Thanks a lot.

I couldn't even find these 3 pb files..where is it located??Is it in the MTCNN Folder

sandeep22-v avatar Mar 02 '21 11:03 sandeep22-v