iOS_Tensorflow_ObjectDetection_Example icon indicating copy to clipboard operation
iOS_Tensorflow_ObjectDetection_Example copied to clipboard

Not found: Op type not registered 'PlaceholderWithDefault' in binary running on iPhone. Make sure the Op and Kernel are registered in the binary running in this process.

Open siddharthmudgal opened this issue 9 years ago • 1 comments

Model retrained using : https://codelabs.developers.google.com/codelabs/tensorflow-for-poets/#0

The final model generated is rounded_graph.pb and retrained_labels.txt.

The above model and labels are working fine in the sample application : https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/ios/camera

however when I put the pb and txt file with this sample application, on loading the graph I get the following error : iOS_Tensorflow_ObjectDetection_Example/ex_SSD_Mobilenet_TF/tensorflow_utils.mm:379] Not found: Op type not registered 'PlaceholderWithDefault' in binary running on iPhone-ezy. Make sure the Op and Kernel are registered in the binary running in this process.

Tensorflow version : 1.4.0 OS : Mac 10.12

siddharthmudgal avatar Oct 04 '17 10:10 siddharthmudgal

Currently, the example only support ssd_mobilenet_v1_coco, ssd_inception_v2_coco, faster_rcnn_resnet101_coco, which means that, if you are using different models, you need to generate the "ops_to_register.h" file by yourself. The current ops_to_register.h is only compatible for the above models.

JieHe96 avatar Oct 09 '17 23:10 JieHe96