MTCNN-Tensorflow icon indicating copy to clipboard operation
MTCNN-Tensorflow copied to clipboard

P/R/O output nodes

Open waquey opened this issue 6 years ago • 3 comments

Hello, I'd like to freeze the graph and save them as pb Currently I've tried to dump the p-net and set "conv4_1/BiasAdd" and "conv4_2/BiasAdd" as output nodes and it can inference successfully.

However, I'm not sure if R-net/O-net output nodes are as following?

cls_fc/BiasAdd bbox_fc/BiasAdd landmark_fc/BiasAdd

Because I have some errors like:

InvalidArgumentError (see above for traceback): Input to reshape is a tensor with 26496 values, but the requested shape has 221184 [[Node: import/Flatten/Reshape = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:CPU:0"](import/conv3/add, import/Flatten/concat)]]

  1. Should I correct the output node names for R/O Net?
  2. mtcnn_model defined R/O's input as 384x24x24x3 and 384x48x48x3, can I just create a new Placeholder as None, 24, 24, 3 while restoring?

Thanks

waquey avatar Aug 14 '18 07:08 waquey

yes ,you can, because the size of the first dimession doesn't really matter, the acutal input of RNet depends on the output of PNet.

zm931116 avatar Aug 21 '18 01:08 zm931116

@waquey hello have you freeze the graph and save three net .ckpt to .pb file ? I have the same need, could you give me some advice

liangheng avatar Dec 19 '18 08:12 liangheng

@waquey have you solve?I need ,too.

17759205390 avatar Jul 24 '19 09:07 17759205390