Dear opencv dnn developers,
[Environment] TensorFlow 1.5 python 3.5 Win7 opencv3.4
I am very new to the Tensor flow. Recently I found a pretrained dnn for age gender detection https://github.com/BoyuanJiang/Age-Gender-Estimate-TF. The model is defined in "inception_resnet_v1.py" and the latest model checkpoints can be found https://mega.nz/#!kaZkWDjb!xQvWi9B--FgyIPtIYfjzLDoJeh2PUBEZPotmzO9N6_M
I loaded model with the latest check point into Tensor Flow and running detection ok, and managed to freeze the graph using freeze_graph.py but when I load this frozen graph by cv::dnn::readNetFromTensorflow("XXX.pb"), it gets error:..."Unknown layer type shape in op map/Shape)".... or I tried cv::dnn::readNetFromTensorflow("XXX.pb", "XXX.pbtxt"), it also gets error:...unknown enumeration values of "DT_RESOURCE" for field "type..."
I have searched over the internet trying to find a solution... someone suggested using "optimize_for_inference" or "graph_transform" might help. As I have limited Tensor Flow knowledge, I do not understand how these two processes can solve the problem. and Also, cv::dnn::readNetFromTensorflow() method has the 2nd argument, which I also do not know in what situation I should/should not provide a .pbtxt for it?
Please help. If there is any further information needed to clarify the question, just let me know and I will supply.
Thanks in advance