matterport / Mask_RCNN

Mask R-CNN for object detection and instance segmentation on Keras and TensorFlow
Other
24.68k stars 11.71k forks source link

Inference .pb frozen model in C# application #2143

Open chrigui94 opened 4 years ago

chrigui94 commented 4 years ago

I am trying to inference the frozen model of mask-rcnn but it gives me this error:

An unhandled exception of type 'TensorFlow.TFException' occurred in TensorFlowSharp.dll
Additional information: You must feed a value for placeholder tensor 'input_image_meta' with dtype float and shape [?,14]
     [[{{node input_image_meta}}]]

is there any help?

truongtd6285 commented 4 years ago

Did you feed two necessary values for two tensor placeholder, sth likes: sess.run(tensor_dict, feed_dict={image_tensor: image, image_meta_tensor: meta}) meta is a numpy array and should have a shape [?,14] in your case.